From 76da72f90130ee98e3f4e3153a4635307cb90da8 Mon Sep 17 00:00:00 2001 From: wj32 Date: Thu, 7 Jul 2011 09:52:24 +0000 Subject: [PATCH] fixed tooltips not being topmost git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4306 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- 2.x/trunk/phlib/treenew.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/2.x/trunk/phlib/treenew.c b/2.x/trunk/phlib/treenew.c index d6fe057b1..43fd0cf9a 100644 --- a/2.x/trunk/phlib/treenew.c +++ b/2.x/trunk/phlib/treenew.c @@ -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,