Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message sets the information that a ToolTip control maintains for a tool.

Syntax

TTM_SETTOOLINFO 
wParam = 0;

lParam = (LPARAM) (LPTOOLINFO) 
lpti;

Parameters

wParam

Not used. Set to 0.

lpti

Pointer to a TOOLINFOstructure that specifies the information to set. You must set the cbSizemember of this structure before you send this message.

Return Value

None.

Remarks

Some internal properties of a tool are established when you create the tool and are not recomputed when you send a TTM_SETTOOLINFO message. If you simply assign values to a TOOLINFOstructure and pass that structure to the ToolTip control in a TTM_SETTOOLINFO message, these values can be lost. Instead, your application should first request the current TOOLINFOstructure for the tool by sending the ToolTip control a TTM_GETTOOLINFOmessage. Then, modify the members of the current TOOLINFOstructure as needed and pass that structure back to the ToolTip control with TTM_SETTOOLINFO.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also