This macro adds one or more buttons to the command bar.
At a Glance
Header file: | Commctrl.h |
Windows CE versions: | 1.0 and later |
Syntax
BOOL CommandBar_AddButtons(HWND hwndCB, UINT uNumButtons, LPTBBUTTON lpButtons);
Parameters
hwndCB
Handle to the command bar’s window. This handle is returned by the CommandBar_Create function when the command bar is created.
uNumButtons
Unsigned integer that contains the number of buttons to add.
lpButtons
Long 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 indicates success. FALSE indicates failure.
See Also