int wRadio, hRadio;
if ( !str.empty() )
{
- GetTextExtent(wxStripMenuCodes(str), &wRadio, &hRadio);
+ GetTextExtent(GetLabelText(str), &wRadio, &hRadio);
wRadio += s_radioSize + GetCharWidth();
if ( hRadio < s_radioSize )
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