]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ctrlsub.cpp
warning fix after huge file patch
[wxWidgets.git] / src / common / ctrlsub.cpp
index 9a7ec228e30ff3bf159bbafa4e9c1529d5cf58c3..777737f6c3a873dcbd076c1b42e0058bd9f8896c 100644 (file)
@@ -5,7 +5,7 @@
 // Modified by:
 // Created:     22.10.99
 // RCS-ID:      $Id$
-// Copyright:   (c) wxWindows team
+// Copyright:   (c) wxWidgets team
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -58,6 +58,15 @@ wxString wxItemContainer::GetStringSelection() const
     return s;
 }
 
+wxArrayString wxItemContainer::GetStrings() const
+{
+    wxArrayString result ;
+    size_t count = GetCount() ;
+    for ( size_t n = 0 ; n < count ; n++ )
+        result.Add(GetString(n));
+    return result ;
+}
+
 // ----------------------------------------------------------------------------
 // appending items
 // ----------------------------------------------------------------------------