]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/mdi/mdi.cpp
Fixes for wxUSE_STATUSBAR.
[wxWidgets.git] / samples / mdi / mdi.cpp
index f8b7b47e74cd68b4c317b23697a21ca343d47f21..33582119bc395bf3a97f01de159778b61376195a 100644 (file)
@@ -145,7 +145,9 @@ bool MyApp::OnInit()
     // Associate the menu bar with the frame
     frame->SetMenuBar(menu_bar);
 
+#if wxUSE_STATUSBAR
     frame->CreateStatusBar();
+#endif // wxUSE_STATUSBAR
 
     frame->Show(true);
 
@@ -260,8 +262,10 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
     // Associate the menu bar with the frame
     subframe->SetMenuBar(menu_bar);
 
+#if wxUSE_STATUSBAR
     subframe->CreateStatusBar();
     subframe->SetStatusText(title);
+#endif // wxUSE_STATUSBAR
 
     int width, height;
     subframe->GetClientSize(&width, &height);