X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a85dda4ad8ebe4d1529e8e117dc326d89f8daec0..f3793429150870568992e96fedacbdf87c0c3340:/samples/notebook/notebook.cpp diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index 1fc248501e..14f3fd951c 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -34,6 +34,9 @@ IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + #if wxUSE_HELP wxHelpProvider::Set( new wxSimpleHelpProvider ); #endif @@ -329,7 +332,6 @@ MyFrame::MyFrame() m_panel->SetSizer(m_sizerFrame); - m_sizerFrame->Fit(this); m_sizerFrame->SetSizeHints(this); Centre(wxBOTH); @@ -427,7 +429,6 @@ void MyFrame::RecreateBook() if ( m_multi && m_type == Type_Notebook ) flags |= wxNB_MULTILINE; - flags |= wxDOUBLE_BORDER; wxBookCtrlBase *oldBook = m_bookCtrl;