]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docvwmdi/docview.cpp
link against oleacc.lib (needed by wxUSE_ACCESSIBILITY)
[wxWidgets.git] / samples / docvwmdi / docview.cpp
index 77fd22fe946a095e5caf22658d88fe3e66edb75c..936aa65504e33a996fe4f82511a17e9fd2070b40 100644 (file)
@@ -99,11 +99,16 @@ bool MyApp::OnInit(void)
     menu_bar->Append(edit_menu, _T("&Edit"));
   menu_bar->Append(help_menu, _T("&Help"));
 
+#ifdef __WXMAC__
+  wxMenuBar::MacSetCommonMenuBar(menu_bar);
+#endif //def __WXMAC__
   //// Associate the menu bar with the frame
   frame->SetMenuBar(menu_bar);
 
   frame->Centre(wxBOTH);
+#ifndef __WXMAC__
   frame->Show(TRUE);
+#endif //ndef __WXMAC__
 
   SetTopWindow(frame);
   return TRUE;