Piotr Caban : comctl32: Ignore tooltip position passed in TTM_TRACKPOSITION if TTF_TRACK flag is not set.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:52 CST 2014


Module: wine
Branch: stable
Commit: 2f4df65c29db2b1637d99756034b1015f27c0ab6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f4df65c29db2b1637d99756034b1015f27c0ab6

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Oct 15 15:52:30 2013 +0200

comctl32: Ignore tooltip position passed in TTM_TRACKPOSITION if TTF_TRACK flag is not set.

(cherry picked from commit 26c751ea2968cb1ec63025a4f19567e7cafe86de)

---

 dlls/comctl32/tooltips.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c
index 2cc7e47..a325bcc 100644
--- a/dlls/comctl32/tooltips.c
+++ b/dlls/comctl32/tooltips.c
@@ -626,7 +626,7 @@ TOOLTIPS_Show (TOOLTIPS_INFO *infoPtr, BOOL track_activate)
     TOOLTIPS_CalcTipSize (infoPtr, &size);
     TRACE("size %d x %d\n", size.cx, size.cy);
 
-    if (track_activate)
+    if (track_activate && (toolPtr->uFlags & TTF_TRACK))
     {
         rect.left = infoPtr->xTrackPos;
         rect.top  = infoPtr->yTrackPos;




More information about the wine-cvs mailing list