int CommandToIndex( UINT nIDFind );
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 Overview | Class Members | Hierarchy Chart
See Also CToolBar::GetItemId