From 2d6b9cafc6fd9ec09edb4ad49aa0006ffa551346 Mon Sep 17 00:00:00 2001 From: Oleg Krylov Date: Wed, 18 Oct 2006 15:46:52 +0300 Subject: [PATCH] comctl32: toolbar: Create tooltip on TB_GETTOOLTIPS message if not yet created. --- dlls/comctl32/toolbar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index 92ded237077..da41486c389 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -3726,6 +3726,8 @@ TOOLBAR_GetToolTips (HWND hwnd, WPARAM wParam, LPARAM lParam) { TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd); + if ((infoPtr->dwStyle & TBSTYLE_TOOLTIPS) && (infoPtr->hwndToolTip == NULL)) + TOOLBAR_TooltipCreateControl(infoPtr); return (LRESULT)infoPtr->hwndToolTip; }