Return wx menu items inserted into the Window system menu, similar to what we do for Help and application menus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6ff68ce9ad
commit
a930afc71b
@ -494,7 +494,8 @@ wxMenu* wxFindMenuFromMacCommand( const HICommand &command , wxMenuItem* &item )
|
|||||||
|
|
||||||
// is it part of the application or the Help menu, then look for the id directly
|
// is it part of the application or the Help menu, then look for the id directly
|
||||||
if ( ( GetMenuHandle( kwxMacAppleMenuId ) != NULL && command.menu.menuRef == GetMenuHandle( kwxMacAppleMenuId ) ) ||
|
if ( ( GetMenuHandle( kwxMacAppleMenuId ) != NULL && command.menu.menuRef == GetMenuHandle( kwxMacAppleMenuId ) ) ||
|
||||||
( helpMenuHandle != NULL && command.menu.menuRef == helpMenuHandle ) )
|
( helpMenuHandle != NULL && command.menu.menuRef == helpMenuHandle ) ||
|
||||||
|
wxMenuBar::MacGetWindowMenuHMenu() != NULL && command.menu.menuRef == wxMenuBar::MacGetWindowMenuHMenu() )
|
||||||
{
|
{
|
||||||
wxMenuBar* mbar = wxMenuBar::MacGetInstalledMenuBar() ;
|
wxMenuBar* mbar = wxMenuBar::MacGetInstalledMenuBar() ;
|
||||||
if ( mbar )
|
if ( mbar )
|
||||||
|
Loading…
Reference in New Issue
Block a user