static WXHMENU MacGetWindowMenuHMenu() { return s_macWindowMenuHandle ; }
+
+ wxMenu* GetAppleMenu() { return m_appleMenu; }
protected:
// common part of all ctors
void Init();
m_appleMenu = new wxMenu();
m_appleMenu->SetAllowRearrange(false);
+#if 0
// Create standard items unless the application explicitly disabled this by
// setting the corresponding ids to wxID_NONE: although this is not
// recommended, sometimes these items really don't make sense.
quitLabel = wxString::Format(_("Quit %s"), wxTheApp ? wxTheApp->GetAppDisplayName() : _("Application"));
m_appleMenu->Append( wxApp::s_macExitMenuItemId, quitLabel + "\tCtrl+Q" );
#endif // !wxOSX_USE_CARBON
+#endif
m_rootMenu->AppendSubMenu(m_appleMenu, "\x14") ;
}
m_rootMenu->GetPeer()->MakeRoot();
+#if 0
// hide items in the apple menu that don't exist in the wx menubar
wxMenuItem* appleItem = NULL;
else
appleItem->SetItemLabel(wxItem->GetItemLabel());
}
+#endif
#if 0