X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..6afa47d63d56094958ed4d2528bf45ad67340954:/src/univ/checklst.cpp?ds=sidebyside diff --git a/src/univ/checklst.cpp b/src/univ/checklst.cpp index e4f4547272..f527683e61 100644 --- a/src/univ/checklst.cpp +++ b/src/univ/checklst.cpp @@ -41,14 +41,6 @@ #include "wx/univ/inphand.h" #include "wx/univ/theme.h" -// ============================================================================ -// implementation of wxCheckListBoxBase -// ============================================================================ - -wxCheckListBoxBase::wxCheckListBoxBase() -{ -} - // ============================================================================ // implementation of wxCheckListBox // ============================================================================ @@ -59,28 +51,37 @@ IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox) // creation // ---------------------------------------------------------------------------- -wxCheckListBox::wxCheckListBox() +void wxCheckListBox::Init() { - Init(); } wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id, - const wxPoint& pos, - const wxSize& size, - int nStrings, - const wxString *choices, + const wxPoint &pos, + const wxSize &size, + const wxArrayString& choices, long style, const wxValidator& validator, - const wxString& name) + const wxString &name) { Init(); - Create(parent, id, pos, size, nStrings, choices, style, validator, name); + Create(parent, id, pos, size, choices, style, validator, name); } -void wxCheckListBox::Init() +bool wxCheckListBox::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); } bool wxCheckListBox::Create(wxWindow *parent,