Alexandre Julliard : comctl32: Fix positioning of tracking tooltips at the bottom of the screen.
Alexandre Julliard
julliard at winehq.org
Mon Dec 13 10:43:21 CST 2010
Module: wine
Branch: master
Commit: 84a86d4897991360c6dc17f2ad9765282c32e06c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=84a86d4897991360c6dc17f2ad9765282c32e06c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Dec 13 16:24:49 2010 +0100
comctl32: Fix positioning of tracking tooltips at the bottom of the screen.
---
dlls/comctl32/tooltips.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c
index 5951796..774387a 100644
--- a/dlls/comctl32/tooltips.c
+++ b/dlls/comctl32/tooltips.c
@@ -636,7 +636,8 @@ TOOLTIPS_Show (TOOLTIPS_INFO *infoPtr, BOOL track_activate)
if (!(style & TTS_BALLOON))
rect.top -= (size.cy / 2);
}
- infoPtr->bToolBelow = TRUE;
+ if (!(infoPtr->bToolBelow = (infoPtr->yTrackPos + size.cy <= GetSystemMetrics(SM_CYSCREEN))))
+ rect.top -= size.cy;
if (!(toolPtr->uFlags & TTF_ABSOLUTE))
{
More information about the wine-cvs
mailing list