Partager via


CToolBarCtrl::DeleteButton

Deletes a button from the toolbar control.

BOOL DeleteButton( 
   int nIndex  
);

Parameters

  • nIndex
    Zero-based index of the button to delete.

Return Value

Nonzero if successful; otherwise zero.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Overview

Hierarchy Chart

CToolBarCtrl::AddButtons

CToolBarCtrl::AutoSize

CToolBarCtrl::InsertButton