[12/13] comctl32/tooltips: Use cached colors for ToolTips
Nikolay Sivov
bunglehead at gmail.com
Mon May 18 12:20:21 CDT 2009
Changelog:
- Use cached colors for ToolTips
>From 2305ec55206927bdc71965ece6d0e7f276df1f04 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 18 May 2009 20:02:09 +0400
Subject: Use cached colors for ToolTips
---
dlls/comctl32/tooltips.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c
index 010f3a9..fc9052e 100644
--- a/dlls/comctl32/tooltips.c
+++ b/dlls/comctl32/tooltips.c
@@ -189,8 +189,8 @@ TOOLTIPS_InitSystemSettings (TOOLTIPS_INFO *infoPtr)
{
NONCLIENTMETRICSW nclm;
- infoPtr->clrBk = GetSysColor (COLOR_INFOBK);
- infoPtr->clrText = GetSysColor (COLOR_INFOTEXT);
+ infoPtr->clrBk = comctl32_color.clrInfoBk;
+ infoPtr->clrText = comctl32_color.clrInfoText;
DeleteObject (infoPtr->hFont);
nclm.cbSize = sizeof(nclm);
@@ -2839,6 +2839,10 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_SETFONT:
return TOOLTIPS_SetFont (hwnd, wParam, lParam);
+ case WM_SYSCOLORCHANGE:
+ COMCTL32_RefreshSysColors();
+ return 0;
+
case WM_TIMER:
return TOOLTIPS_Timer (hwnd, wParam, lParam);
--
1.5.6.5
More information about the wine-patches
mailing list