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

This commit is contained in:
Oleg Krylov 2006-10-18 15:46:52 +03:00 committed by Alexandre Julliard
parent 8ecd34b971
commit 2d6b9cafc6
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}