TB_SETTOOLTIPS

This message adds an array of ToolTip strings to a toolbar.

TB_SETTOOLTIPS uNumToolTip = (UINT) wParam 
lpToolTipsStrings = (LPTSTR) lParam

Parameters

  • uNumToolTip
    Number of ToolTip strings to associate with the toolbar.
  • lpToolTipsStrings
    Array of strings to be displayed as ToolTips.

Return Values

None.

Remarks

The TB_SETTOOLTIPS message in Windows CE is different from the TB_SETTOOLTIPS message in Windows-based desktop platforms.

Windows CE does not support ToolTip controls, so instead of taking a handle to a ToolTip control as its sole parameter, the TB_SETTOOLTIPS message in Windows CE takes 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 Windows CE, only toolbar buttons can have ToolTip strings; menus and combo boxes cannot.

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

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.