Added GetMainWidget() to fix bug that was causing crashes under wxMOTIF.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward
1999-09-16 10:32:03 +00:00
parent 1e2c86ca5c
commit 7183e38bec
2 changed files with 11 additions and 0 deletions

View File

@@ -46,6 +46,11 @@ public:
long style = wxLI_HORIZONTAL,
const wxString &name = wxStaticTextNameStr );
// it's necessary to override this wxWindow function because we
// will want to return the main widget for m_statbox
//
WXWidget GetMainWidget() const;
protected:
// we implement the static line using a static box
wxStaticBox *m_statbox;

View File

@@ -59,3 +59,9 @@ bool wxStaticLine::Create( wxWindow *parent,
return TRUE;
}
WXWidget wxStaticLine::GetMainWidget() const
{
return m_statbox->GetMainWidget();
}