Use DeafultAttributes instead of hard coded defaults

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-07-17 23:22:26 +00:00
parent 35ee3288c6
commit dc5960727c
2 changed files with 24 additions and 7 deletions

View File

@@ -193,6 +193,14 @@ public:
{ /* do nothing */ }
virtual wxVisualAttributes GetDefaultAttributes() const
{
return GetClassDefaultAttributes(GetWindowVariant());
}
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
protected:
// the derived class must implement this function to actually draw the item
// with the given index on the provided DC