CToolBar::CommandToIndex

intCommandToIndex(UINTnIDFind**);**

Return Value

The index of the button, or –1 if no button has the given command ID.

Parameters

nIDFind

Command ID of a toolbar button.

Remarks

This member function returns the index of the first toolbar button, starting at position 0, whose command ID matches nIDFind.

CToolBar OverviewClass MembersHierarchy Chart

See Also   CToolBar::GetItemId