X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33961d59b0fc1271fd7f12cf99819a552610269c..0661ec3993d101d0fb02bac605c979e609fdd04e:/include/wx/msw/menu.h?ds=sidebyside diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 3e6aad81d7..9d2ca80bd8 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -19,6 +19,11 @@ #include "wx/defs.h" #include "wx/event.h" #include "wx/dynarray.h" +#include "wx/string.h" + +#if wxUSE_ACCEL +#include "wx/accel.h" +#endif // wxUSE_ACCEL class WXDLLEXPORT wxMenuItem; class WXDLLEXPORT wxMenuBar; @@ -207,6 +212,10 @@ public: // 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 @@ -276,14 +285,14 @@ public: // 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;