A control's text colour now reflects the system colour setting.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-05-03 16:17:17 +00:00
parent a71dec776e
commit 903f1b0d80
2 changed files with 5 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ wxMSW:
- Worked around an apparent bug in deferred window positioning (moving a - 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 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. checking window positions against corresponding sizer state, if any.
- A control's text colour now reflects the system colour setting.
wxMac: wxMac:

View File

@@ -339,6 +339,10 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd)
{ {
::SetTextColor(hdc, wxColourToRGB(GetForegroundColour())); ::SetTextColor(hdc, wxColourToRGB(GetForegroundColour()));
} }
else
{
::SetTextColor(hdc, ::GetSysColor(COLOR_WINDOWTEXT));
}
WXHBRUSH hbr = 0; WXHBRUSH hbr = 0;
if ( !colBg.Ok() ) if ( !colBg.Ok() )