Add Child to parent instead of adding it to itself!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9898fcda80
commit
cf58a48f62
@ -132,7 +132,7 @@ bool wxFrame::Create(wxWindow *parent,
|
||||
const wxString& name)
|
||||
{
|
||||
if ( parent )
|
||||
AddChild(this);
|
||||
parent->AddChild(this);
|
||||
else
|
||||
wxTopLevelWindows.Append(this);
|
||||
|
||||
@ -921,4 +921,3 @@ static void wxFrameEventHandler(Widget wid,
|
||||
}
|
||||
*continueToDispatch = True;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user