X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..0a7b022960a68e1d9cf2561375e8c0376e07e93b:/include/wx/msw/radiobut.h?ds=sidebyside diff --git a/include/wx/msw/radiobut.h b/include/wx/msw/radiobut.h index 9eb4c81e90..43a8e30e32 100644 --- a/include/wx/msw/radiobut.h +++ b/include/wx/msw/radiobut.h @@ -12,15 +12,11 @@ #ifndef _WX_RADIOBUT_H_ #define _WX_RADIOBUT_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "radiobut.h" -#endif - class WXDLLEXPORT wxRadioButton: public wxControl { public: // ctors and creation functions - wxRadioButton(); + wxRadioButton() { Init(); } wxRadioButton(wxWindow *parent, wxWindowID id, @@ -29,7 +25,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 +48,9 @@ public: // implementation only from now on virtual bool MSWCommand(WXUINT param, WXWORD id); virtual void Command(wxCommandEvent& event); + virtual bool HasTransparentBackground() { return true; } + + virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; protected: virtual wxSize DoGetBestSize() const;