X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e77d093dbe5a09a91600d9ff95a9b0853f2b605d..659ade8c5b948b775ba278837659f10bf66b4844:/samples/sashtest/sashtest.cpp diff --git a/samples/sashtest/sashtest.cpp b/samples/sashtest/sashtest.cpp index 560a5ebc90..7db36a819a 100644 --- a/samples/sashtest/sashtest.cpp +++ b/samples/sashtest/sashtest.cpp @@ -70,7 +70,9 @@ bool MyApp::OnInit(void) // Associate the menu bar with the frame frame->SetMenuBar(menu_bar); +#if wxUSE_STATUSBAR frame->CreateStatusBar(); +#endif // wxUSE_STATUSBAR frame->Show(true); @@ -228,8 +230,10 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event)) subframe->SetIcon(wxIcon(_T("sashtest_icn"))); #endif +#if wxUSE_STATUSBAR // Give it a status line subframe->CreateStatusBar(); +#endif // wxUSE_STATUSBAR // Make a menubar wxMenu *file_menu = new wxMenu;