]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/wince/choicece.cpp
derive wxConfig classes from wxObject and add wxRTTI macros to them (patch 1587607)
[wxWidgets.git] / src / msw / wince / choicece.cpp
index 36b29d1027c920c198562fc42fc6f760aed7ec39..40f7dc81202abd4d219b1a642eb4c6d365f0d4cd 100644 (file)
 
 #if wxUSE_CHOICE && defined(__SMARTPHONE__) && defined(__WXWINCE__)
 
+#include "wx/choice.h"
+
 #ifndef WX_PRECOMP
-    #include "wx/choice.h"
-    #include <commctrl.h>
-    #include "wx/msw/missing.h"
-    #include "wx/msw/winundef.h"
+    #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
 #endif
 
 #include "wx/spinbutt.h" // for wxSpinnerBestSize
@@ -245,7 +244,7 @@ bool wxChoice::CreateAndInit(wxWindow *parent,
         sizeText.y = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy);
     }
 
-    SetBestSize(size);
+    SetInitialSize(size);
 
     (void)::ShowWindow(GetBuddyHwnd(), SW_SHOW);