In GetTextColour, use GetDefaultAttributes instead of ListView_GetTextColor because the latter seems to return black all the time (instead of the theme color)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3b60ea2f22
commit
ef86428624
@ -1115,9 +1115,9 @@ int wxListCtrl::GetSelectedItemCount() const
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user