CToolBarCtrl::CommandToIndex

UINT CommandToIndex( UINT nID ) const;

Return Value

The zero-based index for the button associated with the command ID.

Parameters

nID

Command ID whose button index you want to find.

Remarks

Call this function to retrieve the zero-based index for the button associated with the specified command identifier.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::SetCmdID, CToolBarCtrl::GetButton, CToolBarCtrl::AddButtons, CToolBarCtrl::InsertButton