CToolBarCtrl::SetCmdID
Sets the command identifier that will be sent to the owner window when the specified button is pressed.
BOOL SetCmdID(
int nIndex,
UINT nID
);
Параметры
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.
Возвращаемое значение
Returns nonzero if successful; otherwise zero.
Требования
Header: afxcmn.h