]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/radiobut.h
Simple wxBatteryPower API for the support in wxWinCE, wxPalmOS and any other mobile...
[wxWidgets.git] / include / wx / msw / radiobut.h
index 9eb4c81e9037fb3b9f50e59d421f637795c03276..da92a8e18fdd2f1ae4ed73989320950e918994c0 100644 (file)
@@ -20,7 +20,7 @@ class WXDLLEXPORT wxRadioButton: public wxControl
 {
 public:
     // ctors and creation functions
 {
 public:
     // ctors and creation functions
-    wxRadioButton();
+    wxRadioButton() { Init(); }
 
     wxRadioButton(wxWindow *parent,
                   wxWindowID id,
 
     wxRadioButton(wxWindow *parent,
                   wxWindowID id,
@@ -29,7 +29,12 @@ public:
                   const wxSize& size = wxDefaultSize,
                   long style = 0,
                   const wxValidator& validator = wxDefaultValidator,
                   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,
 
     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);
     // 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;
 
 protected:
     virtual wxSize DoGetBestSize() const;