*/
void Enable(int id, bool enable);
+ /**
+ Returns true if the menu with the given index is enabled.
+
+ @param pos
+ The menu position (0-based)
+
+ @since 2.9.4
+ */
+ bool IsEnabledTop(size_t pos) const;
+
/**
Enables or disables a whole menu.
The menubar to set.
@remarks Only exists on Mac, other platforms do not have this method.
+
+ @onlyfor{wxosx}
*/
static void MacSetCommonMenuBar(wxMenuBar* menubar);
@return The global menubar.
@remarks Only exists on Mac, other platforms do not have this method.
+
+ @onlyfor{wxosx}
*/
static wxMenuBar* MacGetCommonMenuBar();
wxMenuItemList is a pseudo-template list class containing wxMenuItem
pointers, see wxList.
*/
- wxMenuItemList& GetMenuItems() const;
+ wxMenuItemList& GetMenuItems();
const wxMenuItemList& GetMenuItems() const;
//@}