BCGControlBar Pro for MFC
int CBCGPRibbonButton::FindSubItemIndexByID ( UINT  uiID) const

Returns index of sub-item by its command ID.

Returns
Zero-based index of sub-item in the list if items. It's -1 if there is no sub-item with such ID.

Use this method to find a sub-item's index by command ID.

Parameters
uiIDSpecifies the command ID of sub-item.