]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobox.cpp
ActiveX events should be sent to the window, not it's parent.
[wxWidgets.git] / src / msw / radiobox.cpp
index 29943e25c8e2f8110bf64f6e874874fa69521331..c42ccbd12c316706e4e9c6a068940c4647342783 100644 (file)
@@ -346,9 +346,11 @@ bool wxRadioBox::Create(wxWindow *parent,
                          (HMENU)NewControlId(), wxGetInstance(), NULL);
 
     SetSelection(0);
-
     SetSize(pos.x, pos.y, size.x, size.y);
 
+    // Now that we have items determine what is the best size and set it.
+    SetBestSize(size);
+    
     return TRUE;
 }