]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/ctrlsub.h
Removed no longer needed "DECLARE_EVENT_TABLE()" completing the previous change.
[wxWidgets.git] / include / wx / ctrlsub.h
index d27f0102ed5de6336591f2c568466b93f4c7e216..e6ad7e9f71a1c69819635d164ceb4f8c8faf2942 100644 (file)
@@ -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)