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:
parent
3fdac2ab39
commit
8eabf55943
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user