]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/wince/choicece.cpp
fixed LastRead() after Read(wxOutputStream&) (patch 1658301)
[wxWidgets.git] / src / msw / wince / choicece.cpp
index e3f933106d70bd7d0c0fb586ef21eb9c4d9a27f8..40f7dc81202abd4d219b1a642eb4c6d365f0d4cd 100644 (file)
@@ -29,9 +29,7 @@
 #include "wx/choice.h"
 
 #ifndef WX_PRECOMP
-    #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
@@ -246,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);