::wxFindMenuItemId

int wxFindMenuItemId(wxFrame *frame, char *menuString, char *itemString)

Find a menu item identifier associated with the given frame's menu bar.