Partager via


CommandBar_AddToolTips (Windows CE 5.0)

Send Feedback

This macro adds ToolTip strings to the command bar. A ToolTip control is a small pop-up window that displays a line of descriptive text giving the purpose of a button on the command bar.

BOOLCommandBar_AddToolTips(HWNDhwndCB, UINTuNumToolTips, LPTSTRlpToolTips);

Parameters

  • hwndCB
    Handle to the command bar's window. This handle is returned by the CommandBar_Create function when the command bar is created.
  • uNumToolTips
    Unsigned integer that contains the number of ToolTip strings in the array specified in the lpToolTips parameter.
  • lpToolTips
    Array of long pointers to strings that are displayed when the ToolTip control is active. The array must contain the same number of elements as specified in the uNumToolTips parameter.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

Only command-bar buttons can have ToolTip strings; menus and combo boxes cannot.

CommandBar_AddToolTips does not copy the array of ToolTip strings you pass to it. It uses the memory address you pass in the lpToolTips 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

CommandBar_Create

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.