| int CBCGPToolBar::CommandToIndex | ( | UINT | nIDFind, |
| int | iIndexFirst = 0 |
||
| ) | const |
Given a toolbar button's command ID returns the button's index.
A CBCGPToolBar object maintains an internal list of its buttons. Each button has a command ID. Call this function to retrieve a button's index in the list by the button's command ID.
You can specify an index in the list to start from.
| nIDFind | Specifies the command ID. |
| iIndexFirst | Specifies the initial index to start from. |