CCommandBar::InsertButton

Adds one or more buttons to a toolbar control.

BOOL InsertButton(
int nButton,
LPTBBUTTON lpButton );

Parameters

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

  • nButton
    Specifies the zero-based index of a button. This method inserts the new button to the left of this button.

  • lpButton
    Specifies the address of a TBUTTON structure containing information about the button to insert.

Return Values

true if successful; otherwise, false.

Remarks

The lpButton pointer points to a TBUTTON structure.

Requirements

Windows CE version 5.0 or higher.

Header file: Declared in Afxext.h.

See Also

Reference

CCommandBar Methods

Other Resources

Unique MFC for Devices Classes