]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/choice.cpp
Explicitly forward non-command events along to the native control first.
[wxWidgets.git] / src / mac / carbon / choice.cpp
index 8898554b2075eaeecaa8204b7430897adfa23371..677acc8cfe53c962bae60d1d0f2dccc5ac598189 100644 (file)
@@ -17,6 +17,7 @@
 
 #ifndef WX_PRECOMP
     #include "wx/menu.h"
+    #include "wx/dcclient.h"
 #endif
 
 #include "wx/mac/uma.h"
@@ -100,7 +101,7 @@ bool wxChoice::Create(wxWindow *parent,
         SetSelection( 0 );
 
     // Needed because it is a wxControlWithItems
-    SetBestSize( size );
+    SetInitialSize( size );
 
     return true;
 }