X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..da468d387db3b7e22b008bf08be2ff6b202508fb:/include/wx/msw/menu.h?ds=sidebyside diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index ff91771a08..d193d99048 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -86,6 +86,8 @@ public: inline void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; } inline wxEvtHandler *GetEventHandler(void) { return m_eventHandler; } + inline wxList& GetItems() const { return (wxList&) m_menuItems; } + // IMPLEMENTATION bool MSWCommand(WXUINT param, WXWORD id); @@ -162,6 +164,9 @@ class WXDLLEXPORT wxMenuBar: public wxEvtHandler inline void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; } inline wxEvtHandler *GetEventHandler(void) { return m_eventHandler; } + inline int GetMenuCount() const { return m_menuCount; } + inline wxMenu* GetMenu(int i) const { return m_menus[i]; } + public: wxEvtHandler * m_eventHandler; int m_menuCount;