No real changes, just a tiny refactoring in wxMSW wxListCtrl.

Reuse wxListCtrl::SetTextColour() instead of calling ListView_SetTextColor()
from wxListCtrl::SetForegroundColour().

This ensures that the two functions behave consistently, e.g. they now both
use palette-relative colour instead of a raw RGB value in the case of the
latter method as before. This probably doesn't change anything in practice
nowadays.
This commit is contained in:
Vadim Zeitlin
2015-07-27 03:41:30 +02:00
parent 2c61e1b0da
commit 73a5c20613

View File

@@ -505,7 +505,7 @@ bool wxListCtrl::SetForegroundColour(const wxColour& col)
if ( !wxWindow::SetForegroundColour(col) )
return false;
ListView_SetTextColor(GetHwnd(), wxColourToRGB(col));
SetTextColour(col);
return true;
}