]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxListCtrl::SetTextColour to set the RGB value instead of the
authorRobin Dunn <robin@alldunn.com>
Mon, 19 Jul 1999 20:54:43 +0000 (20:54 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 19 Jul 1999 20:54:43 +0000 (20:54 +0000)
RBG value!  (Green and Blue were swapped...  I suppose if you are
colour blind it wouldn't matter much.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 66a752db4c9b79db0cd0acfd01748cbfaf3b7933..1470b9659cac1d24aba2735c399c91cbcba5fc6c 100644 (file)
@@ -192,10 +192,10 @@ void wxListCtrl::UpdateStyle()
         DWORD dwStyleNew = ConvertToMSWStyle(dummy, m_windowStyle);
         dwStyleNew |= m_baseStyle;
 
-        // Get the current window style. 
+        // Get the current window style.
         DWORD dwStyleOld = ::GetWindowLong(GetHwnd(), GWL_STYLE);
 
-        // Only set the window style if the view bits have changed. 
+        // Only set the window style if the view bits have changed.
         if ( dwStyleOld != dwStyleNew )
         {
             ::SetWindowLong(GetHwnd(), GWL_STYLE, dwStyleNew);
@@ -741,7 +741,7 @@ wxColour wxListCtrl::GetTextColour(void) const
 // Sets the text colour of the listview
 void wxListCtrl::SetTextColour(const wxColour& col)
 {
-    ListView_SetTextColor(GetHwnd(), PALETTERGB(col.Red(), col.Blue(), col.Green()));
+    ListView_SetTextColor(GetHwnd(), PALETTERGB(col.Red(), col.Green(), col.Blue()));
 }
 
 // Gets the index of the topmost visible item when in