fixed SetForegroundColour() for the generic tree ctrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-20 17:42:05 +00:00
parent d88a24858a
commit 6f0dd6b274

View File

@@ -754,6 +754,7 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
SetValidator( validator ); SetValidator( validator );
#endif #endif
SetForegroundColour( wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT) );
SetBackgroundColour( wxSystemSettings::GetColour(wxSYS_COLOUR_LISTBOX) ); SetBackgroundColour( wxSystemSettings::GetColour(wxSYS_COLOUR_LISTBOX) );
// m_dottedPen = wxPen( "grey", 0, wxDOT ); too slow under XFree86 // m_dottedPen = wxPen( "grey", 0, wxDOT ); too slow under XFree86
@@ -2061,7 +2062,7 @@ void wxGenericTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxDC &dc, int level
if (attr && attr->HasTextColour()) if (attr && attr->HasTextColour())
colText = attr->GetTextColour(); colText = attr->GetTextColour();
else else
colText = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT); colText = GetForegroundColour();
} }
// prepare to draw // prepare to draw