Fixed wxTreeCtrl to use the proper bacground color from

SystemSettings, and changed how wxListCtrl used SystemSettings
too (static method doesn't need an instance.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-09-18 00:10:03 +00:00
parent 086c94af90
commit 5aeeab1454
2 changed files with 4 additions and 5 deletions

View File

@@ -174,8 +174,7 @@ bool wxListCtrl::DoCreateControl(int x, int y, int w, int h)
} }
#endif // ListView_SetExtendedListViewStyle #endif // ListView_SetExtendedListViewStyle
wxSystemSettings settings; SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW));
SetBackgroundColour(settings.GetSystemColour(wxSYS_COLOUR_WINDOW));
SetForegroundColour(GetParent()->GetForegroundColour()); SetForegroundColour(GetParent()->GetForegroundColour());
SubclassWin(m_hWnd); SubclassWin(m_hWnd);

View File

@@ -212,9 +212,9 @@ bool wxTreeCtrl::Create(wxWindow *parent,
if ( !MSWCreateControl(WC_TREEVIEW, wstyle) ) if ( !MSWCreateControl(WC_TREEVIEW, wstyle) )
return FALSE; return FALSE;
// the treectrl with any other background looks ugly because the items SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW));
// background is white anyhow SetForegroundColour(wxWindow::GetParent()->GetForegroundColour());
SetBackgroundColour(*wxWHITE);
// VZ: this is some experimental code which may be used to get the // VZ: this is some experimental code which may be used to get the
// TVS_CHECKBOXES style functionality for comctl32.dll < 4.71. // TVS_CHECKBOXES style functionality for comctl32.dll < 4.71.