BCGControlBar Pro for MFC
int CBCGPToolBar::ButtonToIndex ( const CBCGPToolbarButton pButton) const

Given a pointer to CBCGPToolbarButton object returns the button's index.

A button's index in the internal list of toolbar buttons.

A CBCGPToolBar object maintains a list of toolbar buttons. Use this function to retrieve a button's index in the list.

pButtonA pointer to toolbar button object.