]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/notebook/notebook.cpp
compilation fix for WXWIN_COMPATIBILITY_2_2
[wxWidgets.git] / samples / notebook / notebook.cpp
index 7943c7a028c142a18ea5379f007892f25926412e..b8b321e1002d96da45dca2ec11404ac737517d14 100644 (file)
@@ -37,7 +37,8 @@ bool MyApp::OnInit()
 {
   // Create the main window
 #if USE_TABBED_DIALOG
-  dialog = new MyDialog((wxFrame *) NULL, -1, (char *) "Notebook", wxPoint(-1, -1), wxSize(365, 390), wxDIALOG_MODAL|wxDEFAULT_DIALOG_STYLE);
+  dialog = new MyDialog((wxFrame *) NULL, -1, "Notebook", wxPoint(-1, -1), wxSize(365, 390),
+                        wxRESIZE_BORDER);
   dialog->ShowModal();
   delete dialog;
 
@@ -58,7 +59,7 @@ bool MyApp::OnInit()
 #endif
 }
 
-void MyApp::InitTabView(wxNotebook* notebook, wxPanel* window)
+void MyApp::InitTabView(wxNotebook* notebook, wxWindow* window)
 {
   m_okButton = new wxButton(window, wxID_OK, "Close", wxPoint(-1, -1), wxSize(80, 25));
   m_cancelButton = new wxButton(window, ID_DELETE_PAGE, "&Delete page", wxPoint(-1, -1), wxSize(80, 25));