]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/bmpbuttn.h
Make Smartphone buildable with current flags.
[wxWidgets.git] / include / wx / msw / bmpbuttn.h
index 99939ad05f3ace9247fdf3f87e95778ee323f857..c7e2113a74afc9db9e9003477beac3e387ce96ff 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     01/02/97
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_BMPBUTTN_H_
@@ -18,6 +18,7 @@
 
 #include "wx/button.h"
 #include "wx/bitmap.h"
+#include "wx/brush.h"
 
 #define wxDEFAULT_BUTTON_MARGIN 4
 
@@ -48,6 +49,7 @@ public:
                 const wxString& name = wxButtonNameStr);
 
     // Implementation
+    virtual bool SetBackgroundColour(const wxColour& colour);
     virtual void SetDefault();
     virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
     virtual void DrawFace( WXHDC dc, int left, int top, int right, int bottom, bool sel );
@@ -56,8 +58,16 @@ public:
 
 protected:
     virtual wxSize DoGetBestSize() const;
-    
-private:
+
+    // invalidate m_brushDisabled when system colours change
+    void OnSysColourChanged(wxSysColourChangedEvent& event);
+
+
+    // the brush we use to draw disabled buttons
+    wxBrush m_brushDisabled;
+
+
+    DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton)
 };