]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/statbox.h
refactored code to do brush adjustment for bg drawing in only one place
[wxWidgets.git] / include / wx / statbox.h
index 7effb7b4a219f5b8efaefb2ed3958946e8ca0f70..d5661e10fc5b62b1f1e7637e2b769c3d0a49ffec 100644 (file)
@@ -14,8 +14,15 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBoxNameStr;
 class WXDLLEXPORT wxStaticBoxBase : public wxControl
 {
 public:
+    wxStaticBoxBase() { }
+
     // overriden base class virtuals
-    virtual bool AcceptsFocus() const { return FALSE; }
+    virtual bool AcceptsFocus() const { return false; }
+    virtual void ApplyParentThemeBackground(const wxColour& bg)
+        { SetBackgroundColour(bg); }
+
+private:
+    DECLARE_NO_COPY_CLASS(wxStaticBoxBase)
 };
 
 #if defined(__WXUNIVERSAL__)