X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6e839336c9f9a869d40b3c7ed212e6f6641d04f..9dcf65d3c1a2dc99917f2fcd1743a0290e41a0d5:/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 <commctrl.h> "properly"
 #endif
 
-// include <commctrl.h> "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;
 }