From 73a5c206134c19d8615a189bdb0803b02237d1d4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Jul 2015 03:41:30 +0200 Subject: [PATCH] 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. --- src/msw/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index a266a60892..b5f6abd6f6 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -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; }