fixed tooltips not being topmost

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4306 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2011-07-07 09:52:24 +00:00
parent 347285a0e5
commit 76da72f901
+13 -1
View File
@@ -5313,14 +5313,26 @@ BOOLEAN PhTnpPrepareTooltipShow(
}
if (!Context->TooltipUnfolding)
{
SetWindowPos(
Context->TooltipsHandle,
HWND_TOPMOST,
0,
0,
0,
0,
SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_HIDEWINDOW
);
return FALSE;
}
rect = Context->TooltipRect;
SendMessage(Context->TooltipsHandle, TTM_ADJUSTRECT, TRUE, (LPARAM)&rect);
MapWindowPoints(Context->Handle, NULL, (POINT *)&rect, 2);
SetWindowPos(
Context->TooltipsHandle,
HWND_TOP,
HWND_TOPMOST,
rect.left,
rect.top,
0,