allow wxRB_GROUP to be changed after creation (patch 1544686)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-09-10 23:08:13 +00:00
parent aa9bfc2ac0
commit bec08b3946
2 changed files with 12 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ public:
virtual void Command(wxCommandEvent& event);
virtual bool HasTransparentBackground() { return true; }
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
protected:
virtual wxSize DoGetBestSize() const;

View 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