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:
Stefan Neis 2000-03-07 11:48:36 +00:00
parent 9898fcda80
commit cf58a48f62

View File

@ -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;
}