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:
@@ -132,7 +132,7 @@ bool wxFrame::Create(wxWindow *parent,
|
|||||||
const wxString& name)
|
const wxString& name)
|
||||||
{
|
{
|
||||||
if ( parent )
|
if ( parent )
|
||||||
AddChild(this);
|
parent->AddChild(this);
|
||||||
else
|
else
|
||||||
wxTopLevelWindows.Append(this);
|
wxTopLevelWindows.Append(this);
|
||||||
|
|
||||||
@@ -921,4 +921,3 @@ static void wxFrameEventHandler(Widget wid,
|
|||||||
}
|
}
|
||||||
*continueToDispatch = True;
|
*continueToDispatch = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user