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.
This commit is contained in:
Alexandre Julliard 2000-05-26 01:16:01 +00:00
parent 2fc028977d
commit 53f8c60ee9

View file

@ -191,7 +191,6 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TTTOOL_INFO *toolPtr; TTTOOL_INFO *toolPtr;
RECT rect, wndrect; RECT rect, wndrect;
SIZE size; SIZE size;
HDC hdc;
NMHDR hdr; NMHDR hdr;
if (infoPtr->nTool == -1) { if (infoPtr->nTool == -1) {
@ -274,9 +273,8 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
SWP_SHOWWINDOW | SWP_NOACTIVATE); SWP_SHOWWINDOW | SWP_NOACTIVATE);
/* repaint the tooltip */ /* repaint the tooltip */
hdc = GetDC (hwnd); InvalidateRect(hwnd, NULL, TRUE);
TOOLTIPS_Refresh (hwnd, hdc); UpdateWindow(hwnd);
ReleaseDC (hwnd, hdc);
SetTimer (hwnd, ID_TIMERPOP, infoPtr->nAutoPopTime, 0); SetTimer (hwnd, ID_TIMERPOP, infoPtr->nAutoPopTime, 0);
} }
@ -314,7 +312,6 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TTTOOL_INFO *toolPtr; TTTOOL_INFO *toolPtr;
RECT rect; RECT rect;
SIZE size; SIZE size;
HDC hdc;
NMHDR hdr; NMHDR hdr;
if (infoPtr->nTrackTool == -1) { if (infoPtr->nTrackTool == -1) {
@ -390,9 +387,8 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
rect.right - rect.left, rect.bottom - rect.top, rect.right - rect.left, rect.bottom - rect.top,
SWP_SHOWWINDOW | SWP_NOACTIVATE ); SWP_SHOWWINDOW | SWP_NOACTIVATE );
hdc = GetDC (hwnd); InvalidateRect(hwnd, NULL, TRUE);
TOOLTIPS_Refresh (hwnd, hdc); UpdateWindow(hwnd);
ReleaseDC (hwnd, hdc);
} }