X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6e839336c9f9a869d40b3c7ed212e6f6641d04f..c11132ca80f6af13bf636abe53f77c8dfd7dab4e:/src/msw/wince/checklst.cpp diff --git a/src/msw/wince/checklst.cpp b/src/msw/wince/checklst.cpp index d2ce744d1f..7f14ed6c63 100644 --- a/src/msw/wince/checklst.cpp +++ b/src/msw/wince/checklst.cpp @@ -29,11 +29,9 @@ #include "wx/checklst.h" #ifndef WX_PRECOMP + #include "wx/msw/wrapcctl.h" // include "properly" #endif -// include "properly" -#include "wx/msw/wrapcctl.h" - // ============================================================================ // implementation // ============================================================================ @@ -118,7 +116,7 @@ bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id, m_itemsClientData.SetCount(n); // now we can compute our best size correctly, so do it if necessary - SetBestSize(size); + SetInitialSize(size); return true; }