On wxMac, set the common menubar to the MDI parent and don't show it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2003-06-19 18:22:06 +00:00
parent 3fdac2ab39
commit 8eabf55943

View 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;