CommandBar_AddButtons

The CommandBar_AddButtons function adds one or more buttons to the command bar.

Syntax

BOOL CommandBar_AddButtons(HWND hwndCB, UINT uNumButtons, LPTBBUTTON lpButtons);

At a Glance

Header file: Commctrl.h
Platforms: H/PC
Windows CE versions: 1.0 and later

Parameters

hwndCB
The command bar's window handle. This handle is returned by the CommandBar_Create function when the command bar is created.
uNumButtons
Number of buttons to add.
lpButtons
Pointer to an array of TBBUTTON structures that contain information about the buttons to add. There must be the same number of elements in the array as specified in the uNumButtons parameter.

Return Values

TRUE if the function succeeds. FALSE if it fails.

See Also

CommandBar_Create, CommandBar_InsertButton, TBBUTTON