wxMenuBar::SetLabelTop

char * GetLabelTop(int pos)

Gets a pointer to a new piece of memory containing the label of the given top-level menu. pos is the position of a menu on the menu bar. Use only after the menubar has been associated with a frame with wxFrame::SetMenuBar.