wxFrame::SetMenuBar

void SetMenuBar(wxMenuBar *frame)

Tells the frame to show the given menu bar. If the frame is destroyed, the menu bar and its menus will be destroyed also, so do not delete the menu bar explicitly (except by resetting the frame's menu bar to another frame or NULL).

See also wxMenuBar, wxMenu.