Partager via


TB_SETTOOLTIPS

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

TB_SETTOOLTIPS
    wParam = (WPARAM) (HWND) hwndToolTip;
    lParam = 0;

Parameters

  • hwndToolTip
    Handle to the ToolTip control.
  • lParam
    Set to zero.

Return Value

None.

Remarks

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 wParam and an lParam. The wParam represents the number of ToolTip strings to associate with the toolbar, and the lParam is 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 lParam parameter. Do not release the memory allocated for the ToolTip string array until the program exits.

Requirements

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

See Also

Reference

Toolbar Controls Messages
SendMessage