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

This message associates a ToolTip control with a toolbar. To send this message, call the SendMessagefunction.



wParam = (WPARAM) (HWND) 

lParam = 0;



Handle to the ToolTip control.


Set to zero.

Return Value



Any buttons added to a toolbar before sending the TB_SETTOOLTIPS message will not be registered with the ToolTip control. This is consistent with the Windows-based desktop and is the preferred use of TB_SETTOOLTIPS.

The following behavior is also supported by TB_SETTOOLTIPS for backwards compatibility with versions prior to Windows CE .NET 4.2. The TB_SETTOOLTIPS message in Windows Embedded CE can take both a wParamand an lParam. The wParamrepresents the number of ToolTip strings to associate with the toolbar, and the lParamis the array of strings to be displayed as ToolTips.

In earlier Windows Embedded CE versions, only toolbar buttons could have ToolTip strings; menus and combo boxes could not.

The TB_SETTOOLTIPS message uses the memory address passed in the lParamparameter. Do not release the memory allocated for the ToolTip string array until the program exits.


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

See Also