Share via


CommandBar_AddButtons

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

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.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.

See Also

CommandBar_Create | CommandBar_InsertButton | TBBUTTON

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.