BCGControlBar Pro for MFC
int CBCGPEditListBase::GetButtonNum ( UINT  uiID) const

Given a button ID returns the button's index

Returns
A button number if the button with specified ID does exist; otherwise -1.

Call this function to retrieve a button's index.

Parameters
uiIDSpecifies a button's ID