]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/notebook/notebook.cpp
trying to support non-wx controls on a window
[wxWidgets.git] / samples / notebook / notebook.cpp
index 5e0d05be50a008448f98f213712704386554376a..d10150e17c492f85032c674b0b23473565100757 100644 (file)
@@ -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;