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
}
#endif // ListView_SetExtendedListViewStyle
- wxSystemSettings settings;
- SetBackgroundColour(settings.GetSystemColour(wxSYS_COLOUR_WINDOW));
+ SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW));
SetForegroundColour(GetParent()->GetForegroundColour());
SubclassWin(m_hWnd);
if ( !MSWCreateControl(WC_TREEVIEW, wstyle) )
return FALSE;
- // the treectrl with any other background looks ugly because the items
- // background is white anyhow
- SetBackgroundColour(*wxWHITE);
+ SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW));
+ SetForegroundColour(wxWindow::GetParent()->GetForegroundColour());
+
// VZ: this is some experimental code which may be used to get the
// TVS_CHECKBOXES style functionality for comctl32.dll < 4.71.