X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..25959b956d323264d8c974a41eea579bf565cd8e:/src/msw/choice.cpp diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 39aacbf81b..220f7c8cfd 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -106,23 +106,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl) // creation // ---------------------------------------------------------------------------- -wxChoice::wxChoice() -{ -} - -wxChoice::wxChoice(wxWindow *parent, - wxWindowID id, - const wxPoint& pos, - const wxSize& size, - int n, - const wxString choices[], - long style, - const wxValidator& validator, - const wxString& name) -{ - Create(parent, id, pos, size, n, choices, style, validator, name); -} - bool wxChoice::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, @@ -168,6 +151,20 @@ bool wxChoice::Create(wxWindow *parent, return TRUE; } +bool wxChoice::Create(wxWindow *parent, + wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style, + const wxValidator& validator, + const wxString& name) +{ + wxCArrayString chs(choices); + return Create(parent, id, pos, size, chs.GetCount(), chs.GetStrings(), + style, validator, name); +} + wxChoice::~wxChoice() { Free();