X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..660296aa90ad5ecc98c585cc24567cee8130499a:/include/wx/msw/bmpbuttn.h diff --git a/include/wx/msw/bmpbuttn.h b/include/wx/msw/bmpbuttn.h index 99939ad05f..c7e2113a74 100644 --- a/include/wx/msw/bmpbuttn.h +++ b/include/wx/msw/bmpbuttn.h @@ -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) };