X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..3a7d5f7cc3892d15ee8de373b8ab52d4bc1eabf8:/src/msw/listbox.cpp diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 80b2bb0f6f..9e4b653af8 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -155,19 +155,6 @@ wxListBox::wxListBox() m_selected = 0; } -wxListBox::wxListBox(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 wxListBox::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, @@ -264,6 +251,20 @@ bool wxListBox::Create(wxWindow *parent, return TRUE; } +bool wxListBox::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); +} + wxListBox::~wxListBox() { Free();