]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobut.cpp
correct GetBestSize() to return correct best size, i.e. the same size as AutoSize...
[wxWidgets.git] / src / msw / radiobut.cpp
index 61ab90ded265b4f0b055972fb2e014f526214230..dddab3e26a2d23f1a86d2e19068d3cf498e4d940 100644 (file)
@@ -314,4 +314,14 @@ wxSize wxRadioButton::DoGetBestSize() const
     return best;
 }
 
+WXDWORD wxRadioButton::MSWGetStyle(long style, WXDWORD *exstyle) const
+{
+    WXDWORD styleMSW = wxControl::MSWGetStyle(style, exstyle);
+
+    if ( style & wxRB_GROUP )
+        styleMSW |= WS_GROUP;
+
+    return styleMSW;
+}
+
 #endif // wxUSE_RADIOBTN