X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8325937efa3777433f50c3556ca5b8347bc8b425..c580f45efe9406261d537f2dada51650eb054be6:/samples/docvwmdi/docview.cpp diff --git a/samples/docvwmdi/docview.cpp b/samples/docvwmdi/docview.cpp index 51ca36d7a3..936aa65504 100644 --- a/samples/docvwmdi/docview.cpp +++ b/samples/docvwmdi/docview.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem +// Copyright: (c) Julian Smart // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// @@ -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;