From: Julian Smart Date: Fri, 24 Jul 1998 20:48:49 +0000 (+0000) Subject: Added missing accessors X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/527fc629c8c7d6eaf06d69ef9c3b3f702214b722 Added missing accessors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;