]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stubs/menu.h
Bother, had to revert it since it caused more ambiguities.
[wxWidgets.git] / include / wx / stubs / menu.h
index 16546021418351d8402488467c716f4a9385c855..fa3936557c40c6be7ff93edbe361af94f7482de5 100644 (file)
@@ -62,10 +62,14 @@ public:
   bool Checked(int id) const;
   inline bool IsChecked(int id) const { return IsChecked(id); };
 
+  // Client data
+  inline void SetClientData(void* clientData) { m_clientData = clientData; }
+  inline void* GetClientData() const { return m_clientData; }
+
   // item properties
     // title
   void SetTitle(const wxString& label);
-  const wxString& GetTitle() const;
+  const wxString GetTitle() const;
     // label
   void SetLabel(int id, const wxString& label);
   wxString GetLabel(int id) const;
@@ -97,6 +101,7 @@ public:
   wxList            m_menuItems;
   wxEvtHandler *    m_parent;
   wxEvtHandler *    m_eventHandler;
+  void*             m_clientData;
 };
 
 // ----------------------------------------------------------------------------