adding OS level Window Menu by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -567,6 +567,8 @@ auto-merge for MDI in case this will be necessary
|
||||
|
||||
wxMenuBar* wxMenuBar::s_macInstalledMenuBar = NULL ;
|
||||
wxMenuBar* wxMenuBar::s_macCommonMenuBar = NULL ;
|
||||
bool wxMenuBar::s_macAutoWindowMenu = true ;
|
||||
WXHMENU wxMenuBar::s_macWindowMenuHandle = NULL ;
|
||||
|
||||
void wxMenuBar::Init()
|
||||
{
|
||||
@@ -775,6 +777,14 @@ void wxMenuBar::MacInstallMenuBar()
|
||||
UMASetMenuItemShortcut( GetMenuHandle( kwxMacAppleMenuId ) , 1 , entry ) ;
|
||||
}
|
||||
}
|
||||
if ( GetAutoWindowMenu() )
|
||||
{
|
||||
if ( MacGetWindowMenuHMenu() == NULL )
|
||||
{
|
||||
CreateStandardWindowMenu( 0 , (MenuHandle*) &s_macWindowMenuHandle ) ;
|
||||
}
|
||||
InsertMenu( (MenuHandle) MacGetWindowMenuHMenu() , 0 ) ;
|
||||
}
|
||||
::DrawMenuBar() ;
|
||||
s_macInstalledMenuBar = this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user