]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ctrlsub.cpp
fixes for new lib dirs for wxMSW
[wxWidgets.git] / src / common / ctrlsub.cpp
index 93de1562dace551535e6d20e622a68d0aca30f03..03be03f3dc1cc17287d09e967425192fe5cef4bc 100644 (file)
@@ -17,7 +17,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "controlwithitems.h"
 #endif
 
@@ -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
 // ----------------------------------------------------------------------------