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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user