moved ProvidesBackground() from wxUniv to base wxWindow class; use it to prevent inheriting background brush beyond the windows which normally have their own background

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-12-19 20:51:06 +00:00
parent 24cb401947
commit 4cc4e7b6cc
5 changed files with 13 additions and 10 deletions

View File

@@ -757,6 +757,13 @@ public:
}
wxColour GetBackgroundColour() const;
// if the window shouldn't inherit its colour from the parent, override
// this function to return true
//
// this is currently only used by wxMSW and wxUniv but should be useful for
// the other ports too
virtual bool ProvidesBackground() const { return false; }
virtual bool SetForegroundColour(const wxColour& colour);
void SetOwnForegroundColour(const wxColour& colour)
{