// menubar construction
WXHMENU Create();
void Append(wxMenu *menu, const wxString& title);
+ void Insert(int pos, wxMenu * menu, const wxString& title);
+ void ReplaceMenu(int pos, wxMenu * new_menu, const wxString& title);
+ int FindMenu(const wxString& title);
+ void Detach();
virtual void Delete(wxMenu *menu, int index = 0); /* Menu not destroyed */
// state control
// get the menu handle
WXHMENU GetHMenu() const { return m_hMenu; }
-protected:
- // common part of all ctors
- void Init();
-
// if the menubar is modified, the display is not updated automatically,
// call this function to update it (m_menuBarFrame should be !NULL)
void Refresh();
+protected:
+ // common part of all ctors
+ void Init();
+
wxEvtHandler *m_eventHandler;
int m_menuCount;
wxMenu **m_menus;