]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/menu.h
added __WXBASE__ define; removed duplicated (in wx/chkconf.h) compatibility section
[wxWidgets.git] / include / wx / menu.h
index fe2642cdcd9d41dd846b5cc45e1f110278796154..77633a78149f2cd6c6fc90bd3e316f66e610afbb 100644 (file)
@@ -242,6 +242,9 @@ public:
     virtual int FindItem(const wxString& item) const;
     wxMenuItem* FindItem(int itemid, wxMenu **menu = NULL) const;
 
+    // find by position
+    wxMenuItem* FindItemByPosition(size_t position) const;
+
     // get/set items attributes
     void Enable(int itemid, bool enable);
     bool IsEnabled(int itemid) const;
@@ -539,6 +542,8 @@ protected:
     #include "wx/gtk/menu.h"
 #elif defined(__WXMAC__)
     #include "wx/mac/menu.h"
+#elif defined(__WXCOCOA__)
+    #include "wx/cocoa/menu.h"
 #elif defined(__WXPM__)
     #include "wx/os2/menu.h"
 #endif