int CBCGPToolBar::ButtonToIndex | ( | const CBCGPToolbarButton * | pButton | ) | const |
Given a pointer to CBCGPToolbarButton object returns the button's index.
A CBCGPToolBar object maintains a list of toolbar buttons. Use this function to retrieve a button's index in the list.
pButton | A pointer to toolbar button object. |