From 8eabf55943965a28863d0159bdc66732c7e80c69 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Thu, 19 Jun 2003 18:22:06 +0000 Subject: [PATCH] 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 --- samples/docvwmdi/docview.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/docvwmdi/docview.cpp b/samples/docvwmdi/docview.cpp index 77fd22fe94..936aa65504 100644 --- a/samples/docvwmdi/docview.cpp +++ b/samples/docvwmdi/docview.cpp @@ -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; -- 2.50.0