Share via


CommandBar_AddButtons (Compact 2013)

3/28/2014

This macro adds one or more buttons to the command bar.

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 Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header

commctrl.h

See Also

Reference

Command Bars Macros
CommandBar_Create
CommandBar_InsertButton
TBBUTTON