From: Stefan Csomor Date: Mon, 10 Mar 2003 11:57:27 +0000 (+0000) Subject: submenu preparation in two methods encapsulated X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/578dc95029e761a59911b7c1bc09f59384d64ddf?ds=inline submenu preparation in two methods encapsulated git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mac/menu.h b/include/wx/mac/menu.h index ed73c5ed3e..e71cf26809 100644 --- a/include/wx/mac/menu.h +++ b/include/wx/mac/menu.h @@ -60,6 +60,12 @@ public: int MacGetIndexFromId( int id ) ; int MacGetIndexFromItem( wxMenuItem *pItem ) ; void MacEnableMenu( bool bDoEnable ) ; + // MacOS needs to know about submenus somewhere within this menu + // before it can be displayed , also hide special menu items like preferences + // that are handled by the OS + void MacBeforeDisplay( bool isSubMenu ) ; + // undo all changes from the MacBeforeDisplay call + void MacAfterDisplay( bool isSubMenu ) ; // semi-private accessors // get the window which contains this menu