X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fca418ae12286d47a0e8490185daa84fde9f20e9..d2b23b67301bd2d286366d4326a21da3132558fa:/src/msw/listbox.cpp diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index bc989f5d32..e9f8db9e3a 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -80,7 +80,7 @@ wxBEGIN_FLAGS( wxListBoxStyle ) wxEND_FLAGS( wxListBoxStyle ) -IMPLEMENT_DYNAMIC_CLASS_XTI(wxListBox, wxControl,"wx/listbox.h") +IMPLEMENT_DYNAMIC_CLASS_XTI(wxListBox, wxControlWithItems,"wx/listbox.h") wxBEGIN_PROPERTIES_TABLE(wxListBox) wxEVENT_PROPERTY( Select , wxEVT_COMMAND_LISTBOX_SELECTED , wxCommandEvent ) @@ -97,7 +97,7 @@ wxEND_HANDLERS_TABLE() wxCONSTRUCTOR_4( wxListBox , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size ) #else -IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) +IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems) #endif /* @@ -177,7 +177,7 @@ bool wxListBox::Create(wxWindow *parent, } // now we can compute our best size correctly, so do it if necessary - SetBestSize(size); + SetInitialSize(size); return true; }