CToolBarCtrl::SetCmdID

BOOL SetCmdID( int nIndex, UINT nID );

Return Value

Returns nonzero if successful; otherwise zero.

Parameters

nIndex

The zero-based index of the button whose command ID is to be set.

nID

The command ID to set the selected button to.

Remarks

Call this function to set the command identifier which will be sent to the owner window when the specified button is pressed.

CToolBarCtrl OverviewClass MembersHierarchy Chart

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