X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..8ea92b4d7792987769774ac381685dae15c70454:/include/wx/msw/radiobut.h diff --git a/include/wx/msw/radiobut.h b/include/wx/msw/radiobut.h index 9eb4c81e90..da92a8e18f 100644 --- a/include/wx/msw/radiobut.h +++ b/include/wx/msw/radiobut.h @@ -20,7 +20,7 @@ class WXDLLEXPORT wxRadioButton: public wxControl { public: // ctors and creation functions - wxRadioButton(); + wxRadioButton() { Init(); } wxRadioButton(wxWindow *parent, wxWindowID id, @@ -29,7 +29,12 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxRadioButtonNameStr); + const wxString& name = wxRadioButtonNameStr) + { + Init(); + + Create(parent, id, label, pos, size, style, validator, name); + } bool Create(wxWindow *parent, wxWindowID id, @@ -47,6 +52,9 @@ public: // implementation only from now on virtual bool MSWCommand(WXUINT param, WXWORD id); virtual void Command(wxCommandEvent& event); + virtual void ApplyParentThemeBackground(const wxColour& bg) + { SetBackgroundColour(bg); } + protected: virtual wxSize DoGetBestSize() const;