Commit 363a75f6 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Fix some remaining problems with tooltips.

parent 6bb6d4c2
......@@ -1515,11 +1515,6 @@ TOOLTIPS_RelayEvent (HWND hwnd, WPARAM wParam, LPARAM lParam)
case WM_MBUTTONUP:
case WM_RBUTTONDOWN:
case WM_RBUTTONUP:
pt.x = LOWORD(lParam);
pt.y = HIWORD(lParam);
infoPtr->nTool = TOOLTIPS_GetToolFromPoint (infoPtr, lpMsg->hwnd, &pt);
TRACE("tool (%x) %d %d\n",
hwnd, infoPtr->nTool, infoPtr->nCurrentTool);
TOOLTIPS_Hide (hwnd, infoPtr);
break;
......@@ -1875,6 +1870,7 @@ TOOLTIPS_UpdateTipTextA (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
if(infoPtr->nCurrentTool == -1) return 0;
/* force repaint */
if (infoPtr->bActive)
TOOLTIPS_Show (hwnd, infoPtr);
......@@ -1929,6 +1925,7 @@ TOOLTIPS_UpdateTipTextW (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
if(infoPtr->nCurrentTool == -1) return 0;
/* force repaint */
if (infoPtr->bActive)
TOOLTIPS_Show (hwnd, infoPtr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment