wxMenuBar::FindItemById

wxMenuItem * FindItemById(int itemId)

Finds the menu item object associated with the given menu item identifier, returning NULL if not found.