PyCToolBarCtrl.CommandToIndex

int = CommandToIndex(nID)

Retrieve the zero-based index for the button associated with the specified command identifier.

Parameters

nID : int

Command identifier of the button you want to find.

MFC References

CToolBarCtrl::CommandToIndex