]> git.saurik.com Git - wxWidgets.git/commitdiff
Added missing accessors
authorJulian Smart <julian@anthemion.co.uk>
Fri, 24 Jul 1998 20:48:49 +0000 (20:48 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 24 Jul 1998 20:48:49 +0000 (20:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/menu.h

index ff91771a08cdc77045c1fe5392fdee89ca9e8d34..d193d990483983cc53e6cd7d7ff68eb1986e496e 100644 (file)
@@ -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;