just added wxUSE_MENUS around code using the menus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-01-07 01:12:49 +00:00
parent 90392f9cc9
commit 290c74fbed

View File

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