X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..156194e1d525407e90c21552f8f7aa05756e0ddc:/include/wx/button.h?ds=sidebyside diff --git a/include/wx/button.h b/include/wx/button.h index d4032a3b6c..1e7f14a0f7 100644 --- a/include/wx/button.h +++ b/include/wx/button.h @@ -60,6 +60,11 @@ public: // on its panel virtual void SetDefault() { } + // Buttons on MSW can look bad if they are not native colours, because + // then they become owner-drawn and not theme-drawn. Disable it here + // in wxButtonBase to make it consistent. + virtual bool ShouldInheritColours() const { return false; } + // returns the default button size for this platform static wxSize GetDefaultSize();