From 53f8c60ee912bfeba6d17f9a84352b66cdbb842f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 26 May 2000 01:16:01 +0000 Subject: [PATCH] Francois Methot (Macadamian) Fixed the blank color palette tooltip bug by triggering a refresh of the tooltip with UpdateWindow function instead of calling directly the refresh function. --- dlls/comctl32/tooltips.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index b0a13ff1b5e..e866171425d 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -191,7 +191,6 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr) TTTOOL_INFO *toolPtr; RECT rect, wndrect; SIZE size; - HDC hdc; NMHDR hdr; if (infoPtr->nTool == -1) { @@ -274,9 +273,8 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr) SWP_SHOWWINDOW | SWP_NOACTIVATE); /* repaint the tooltip */ - hdc = GetDC (hwnd); - TOOLTIPS_Refresh (hwnd, hdc); - ReleaseDC (hwnd, hdc); + InvalidateRect(hwnd, NULL, TRUE); + UpdateWindow(hwnd); SetTimer (hwnd, ID_TIMERPOP, infoPtr->nAutoPopTime, 0); } @@ -314,7 +312,6 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr) TTTOOL_INFO *toolPtr; RECT rect; SIZE size; - HDC hdc; NMHDR hdr; if (infoPtr->nTrackTool == -1) { @@ -390,9 +387,8 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr) rect.right - rect.left, rect.bottom - rect.top, SWP_SHOWWINDOW | SWP_NOACTIVATE ); - hdc = GetDC (hwnd); - TOOLTIPS_Refresh (hwnd, hdc); - ReleaseDC (hwnd, hdc); + InvalidateRect(hwnd, NULL, TRUE); + UpdateWindow(hwnd); } -- 2.11.4.GIT