Nikolay Sivov : comctl32/tooltips: Use cached colors for ToolTips.
Module: wine Branch: master Commit: 8f5a1ae8c90d819c7f2e80ae911c7a9d981c32a8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f5a1ae8c90d819c7f2e80ae91... Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 20:02:09 2009 +0400 comctl32/tooltips: 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);
participants (1)
-
Alexandre Julliard