]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ctrlsub.cpp
include "wx/module.h" for wxModule
[wxWidgets.git] / src / common / ctrlsub.cpp
index 67e8a80333a1e226e832d152f58913b1b1884557..975812f8d44749c7b385f2105b83775082ca8722 100644 (file)
@@ -70,6 +70,25 @@ void wxItemContainer::Append(const wxArrayString& strings)
     }
 }
 
+int wxItemContainer::Insert(const wxString& item, int pos, void *clientData)
+{
+    int n = DoInsert(item, pos);
+    if ( n != wxNOT_FOUND )
+        SetClientData(n, clientData);
+
+    return n;
+}
+
+int
+wxItemContainer::Insert(const wxString& item, int pos, wxClientData *clientData)
+{
+    int n = DoInsert(item, pos);
+    if ( n != wxNOT_FOUND )
+        SetClientObject(n, clientData);
+
+    return n;
+}
+
 // ----------------------------------------------------------------------------
 // client data
 // ----------------------------------------------------------------------------