X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/563c26064082bc96ad99cd816503e2607fb7e1e5..667e2c55eab8820efc2e7dc06611724641e9bcf3:/samples/notebook/notebook.cpp?ds=sidebyside diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index eeb65f56d4..b8b321e100 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -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, 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));