git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35732
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Gets the text colour of the listview
wxColour wxListCtrl::GetTextColour() const
{
- COLORREF ref = ListView_GetTextColor(GetHwnd());
- wxColour col(GetRValue(ref), GetGValue(ref), GetBValue(ref));
- return col;
+ // Use GetDefaultAttributes instead of ListView_GetTextColor because
+ // the latter seems to return black all the time (instead of the theme color)
+ return GetDefaultAttributes().colFg;
}
// Sets the text colour of the listview