]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/notebook/notebook.cpp
Fix typo from version 1.528.
[wxWidgets.git] / samples / notebook / notebook.cpp
index eeb65f56d427b1e268e9fdd2da46455fa9e4941b..b8b321e1002d96da45dca2ec11404ac737517d14 100644 (file)
@@ -37,7 +37,8 @@ bool MyApp::OnInit()
 {
   // Create the main window
 #if USE_TABBED_DIALOG
 {
   // 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;
 
   dialog->ShowModal();
   delete dialog;
 
@@ -58,7 +59,7 @@ bool MyApp::OnInit()
 #endif
 }
 
 #endif
 }
 
-void MyApp::InitTabView(wxNotebook* notebook, wxTopLevelWindow* 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));
 {
   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));