diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 1e53d52128..a266a60892 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1225,7 +1225,7 @@ wxColour wxListCtrl::GetTextColour() const // Sets the text colour of the listview void wxListCtrl::SetTextColour(const wxColour& col) { - ListView_SetTextColor(GetHwnd(), PALETTERGB(col.Red(), col.Green(), col.Blue())); + ListView_SetTextColor(GetHwnd(), wxColourToPalRGB(col)); } // Gets the index of the topmost visible item when in