]> git.saurik.com Git - wxWidgets.git/commitdiff
A control's text colour now reflects the system colour setting.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 3 May 2005 16:17:17 +0000 (16:17 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 3 May 2005 16:17:17 +0000 (16:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/msw/control.cpp

index 5e712b3e0a1c687d6a5b3817c1a129109da2794b..cbc3cf5218e1376e84fec7172ab4aa1f55db1e76 100644 (file)
@@ -26,6 +26,7 @@ wxMSW:
 - Worked around an apparent bug in deferred window positioning (moving a
   window from (x, y) to (a, b) and back to (x, y) misses the last step) by
   checking window positions against corresponding sizer state, if any.
+- A control's text colour now reflects the system colour setting.
 
 wxMac:
 
index d0395958a37a0742d86c8f67261b0d3c50487011..ce27473f216a1c36010b8dd1f8abef8fff682df4 100644 (file)
@@ -339,6 +339,10 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd)
     {
         ::SetTextColor(hdc, wxColourToRGB(GetForegroundColour()));
     }
+    else
+    {
+        ::SetTextColor(hdc, ::GetSysColor(COLOR_WINDOWTEXT));
+    }
 
     WXHBRUSH hbr = 0;
     if ( !colBg.Ok() )