次の方法で共有


TB_SETTOOLTIPS (Windows CE 5.0)

Send Feedback

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

TB_SETTOOLTIPSwParam = (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 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 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

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.

See Also

Toolbar Controls Messages | SendMessage

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.