X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37144cf0f155bb7cea1972e934a4d083bca1b8ca..d88ffaaa76c8c98f326457fb313bc98690cf64b6:/samples/notebook/notebook.cpp?ds=sidebyside diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index 5e0d05be50..d10150e17c 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -36,7 +36,7 @@ bool MyApp::OnInit() #if defined(__WXMOTIF__) int width, height; frame->GetSize(& width, & height); - frame->SetSize(wxDefaultPosition.x, wxDefaultPosition.y, width, height); + frame->SetSize(wxDefaultCoord, wxDefaultCoord, width, height); #endif frame->Show(); @@ -390,7 +390,7 @@ void MyFrame::ReInitNotebook() m_notebook->AddPage(page, str, false, m_notebook->GetIconIndex() ); } - m_sizerTop->Remove(notebook); + m_sizerTop->Detach(notebook); delete notebook;