Oleg Krylov : comctl32: toolbar: Create tooltip on TB_GETTOOLTIPS message if not yet created.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 19 07:19:19 CDT 2006


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

Author: Oleg Krylov <oleg.krylov at gmail.com>
Date:   Wed Oct 18 15:46:52 2006 +0300

comctl32: toolbar: Create tooltip on TB_GETTOOLTIPS message if not yet created.

---

 dlls/comctl32/toolbar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 92ded23..da41486 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -3726,6 +3726,8 @@ TOOLBAR_GetToolTips (HWND hwnd, WPARAM w
 {
     TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd);
 
+    if ((infoPtr->dwStyle & TBSTYLE_TOOLTIPS) && (infoPtr->hwndToolTip == NULL))
+        TOOLBAR_TooltipCreateControl(infoPtr);
     return (LRESULT)infoPtr->hwndToolTip;
 }
 




More information about the wine-cvs mailing list