PyCToolBarCtrl.SetCmdID

SetCmdID(nIndex, nID)

Set the command identifier which will be sent to the owner window when the specified button is pressed.

Parameters

nIndex : int

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

nID : int

The command ID to set the selected button to.

MFC References

CToolBarCtrl::SetCmdID