X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/997176a34641a870b1f6c6102e30f64f86b4122a..7a5e53abb3f9ea13eba2880972306446e4e21e83:/include/wx/bmpbuttn.h diff --git a/include/wx/bmpbuttn.h b/include/wx/bmpbuttn.h index abe3cb7632..c874c9d9da 100644 --- a/include/wx/bmpbuttn.h +++ b/include/wx/bmpbuttn.h @@ -61,6 +61,10 @@ public: int GetMarginX() const { return m_marginX; } int GetMarginY() const { return m_marginY; } + virtual void ApplyParentThemeBackground(const wxColour& bg) + { SetBackgroundColour(bg); } + + protected: // function called when any of the bitmaps changes virtual void OnSetBitmap() { } @@ -74,10 +78,13 @@ protected: // the margins around the bitmap int m_marginX, m_marginY; + private: // Prevent Virtual function hiding warnings void SetLabel(const wxString& rsLabel) - { wxWindowBase::SetLabel(rsLabel); } + { wxWindowBase::SetLabel(rsLabel); } + + DECLARE_NO_COPY_CLASS(wxBitmapButtonBase) }; #if defined(__WXUNIVERSAL__)