wxMenu::FindItem

int FindItem(char *itemString)

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