]> git.saurik.com Git - wxWidgets.git/commitdiff
just added wxUSE_MENUS around code using the menus
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jan 2006 01:12:49 +0000 (01:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jan 2006 01:12:49 +0000 (01:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/mdi/mdi.cpp

index 6c521e7a9d8046c6cd92d635e914768426d3b9e5..ab8347223d902047755fe9bdf82c4225ef5a7770 100644 (file)
@@ -234,6 +234,7 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
     subframe->SetIcon(wxIcon( mondrian_xpm ));
 #endif
 
+#if wxUSE_MENUS
     // Make a menubar
     wxMenu *file_menu = new wxMenu;
 
@@ -260,6 +261,7 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
 
     // Associate the menu bar with the frame
     subframe->SetMenuBar(menu_bar);
+#endif // wxUSE_MENUS
 
 #if wxUSE_STATUSBAR
     subframe->CreateStatusBar();