X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..839dda6f70939673fb91518aa506b731390a7d11:/include/wx/msw/menu.h diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 68f3f67d08..a7ede6fe16 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -54,6 +54,10 @@ public: // delete an item void Delete(int id); /* If it's a submenu, menu is not destroyed. VZ: why? */ + // Client data + inline void SetClientData(void* clientData) { m_clientData = clientData; } + inline void* GetClientData() const { return m_clientData; } + // menu item control void Enable(int id, bool Flag); bool Enabled(int id) const; @@ -65,7 +69,7 @@ public: // 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; @@ -120,6 +124,7 @@ public: wxEvtHandler * m_parent; wxEvtHandler * m_eventHandler; wxWindow *m_pInvokingWindow; + void* m_clientData; }; // ----------------------------------------------------------------------------