CToolBar::GetItemID

CToolBar::GetItemID

UINT GetItemID( int nIndex ) const;

Return Value

The command ID of the button or separator specified by nIndex.

Parameters

nIndex

Index of the item whose ID is to be retrieved.

Remarks

This member function returns the command ID of the button or separator specified by nIndex. Separators return ID_SEPARATOR.

CToolBar Overview |  Class Members |  Hierarchy Chart

See Also   CToolBar::CommandToIndex, CControlBar::GetCount