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:
@@ -99,11 +99,16 @@ bool MyApp::OnInit(void)
|
|||||||
menu_bar->Append(edit_menu, _T("&Edit"));
|
menu_bar->Append(edit_menu, _T("&Edit"));
|
||||||
menu_bar->Append(help_menu, _T("&Help"));
|
menu_bar->Append(help_menu, _T("&Help"));
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
wxMenuBar::MacSetCommonMenuBar(menu_bar);
|
||||||
|
#endif //def __WXMAC__
|
||||||
//// Associate the menu bar with the frame
|
//// Associate the menu bar with the frame
|
||||||
frame->SetMenuBar(menu_bar);
|
frame->SetMenuBar(menu_bar);
|
||||||
|
|
||||||
frame->Centre(wxBOTH);
|
frame->Centre(wxBOTH);
|
||||||
|
#ifndef __WXMAC__
|
||||||
frame->Show(TRUE);
|
frame->Show(TRUE);
|
||||||
|
#endif //ndef __WXMAC__
|
||||||
|
|
||||||
SetTopWindow(frame);
|
SetTopWindow(frame);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user