Share via


CCommandBar::AddButtons

Adds one or more buttons to a toolbar control.

BOOL AddButtons(
UINT uNumButtons,
LPTBBUTTON lpButtons );

Parameters

The following table describes the parameters for the AddButtons method of the CCommandBar Class.

  • uNumButtons
    Specifies the number of buttons to add.

  • lpButtons
    Specifies the address of an array of TBBUTTON structures that contains information about the buttons to add. There must be the same number of elements in the array as buttons specified by nNumButtons.

Return Values

true if successful; otherwise, false.

Remarks

The lpButtons pointer points to an array of TBBUTTON structures.

Requirements

Windows CE versions 5.0 and later.

Header file: Declared in Afxext.h.

See Also

Reference

CCommandBar Methods

Other Resources

Unique MFC for Devices Classes