X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa61d3525370a9b9fa8c797d9b7f89d96994db5f..86015e55eb22b19b31f2267fc39eb958192f4ac6:/include/wx/ctrlsub.h diff --git a/include/wx/ctrlsub.h b/include/wx/ctrlsub.h index d27f0102ed..e6ad7e9f71 100644 --- a/include/wx/ctrlsub.h +++ b/include/wx/ctrlsub.h @@ -144,6 +144,7 @@ protected: virtual void DoSetItemClientObject(unsigned int n, wxClientData* clientData) = 0; virtual wxClientData* DoGetItemClientObject(unsigned int n) const = 0; + // the type of the client data for the items wxClientDataType m_clientDataItemsType; }; @@ -197,6 +198,12 @@ protected: // ctors for this to work! virtual void SetInitialBestSize(const wxSize& WXUNUSED(size)) { } + // fill in the client object or data field of the event as appropriate + // + // calls InitCommandEvent() and, if n != wxNOT_FOUND, also sets the per + // item client data + void InitCommandEventWithItems(wxCommandEvent& event, int n); + private: DECLARE_ABSTRACT_CLASS(wxControlWithItems) DECLARE_NO_COPY_CLASS(wxControlWithItems)