X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..82a16d7e5e5c83e95a4caa7314de2dbfbd1debdc:/src/common/ctrlsub.cpp diff --git a/src/common/ctrlsub.cpp b/src/common/ctrlsub.cpp index 9a7ec228e3..777737f6c3 100644 --- a/src/common/ctrlsub.cpp +++ b/src/common/ctrlsub.cpp @@ -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 // ----------------------------------------------------------------------------