wxMenuBar::FindMenuItem

int FindMenuItem(char *menuString, char *itemString)

Finds the menu item id for a menu name/menu item string pair, or -1 if none found. Any special menu codes are stripped out of source and target strings before matching.