@library{wxcore}
@category{menus}
- @see wxMenu, @ref overview_eventhandling
+ @see wxMenu, @ref overview_events
*/
class wxMenuBar : public wxWindow
{
specifying an object whose class has @c EVT_MENU entries;
Note that instead of static @c EVT_MENU macros you can also use dynamic
- connection; see @ref overview_eventhandling_connect.
+ connection; see @ref overview_events_bind.
@library{wxcore}
@category{menus}
- @see wxMenuBar, wxWindow::PopupMenu, @ref overview_eventhandling,
+ @see wxMenuBar, wxWindow::PopupMenu, @ref overview_events,
@ref wxFileHistory "wxFileHistory (most recently used files menu)"
*/
class wxMenu : public wxEvtHandler
*/
void Enable(int id, bool enable);
+ /**
+ Finds the menu item object associated with the given menu item identifier
+ and, optionally, the position of the item in the menu.
+
+ Unlike FindItem(), this function doesn't recurse but only looks at the
+ direct children of this menu.
+
+ @param id
+ The identifier of the menu item to find.
+ @param pos
+ If the pointer is not @NULL, it is filled with the item's position if
+ it was found or @c (size_t)wxNOT_FOUND otherwise.
+ @return
+ Menu item object or @NULL if not found.
+ */
+ wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const;
+
/**
Finds the menu id for a menu item string.