BCGControlBar Pro for MFC
void CBCGPRibbonPanel::GetElements ( CArray< CBCGPBaseRibbonElement *, CBCGPBaseRibbonElement * > &  arElements,
BOOL  bIncludeSubItems = TRUE 
)

Retrieves all elements contained in ribbon panel.

The function fills arElements with pointers to base ribbon elements contained in panel.

Parameters
arElementsWhen the function returns the parameter will contain an array of pointers to base ribbon elements.
bIncludeSubItemsSpecifies whether ribbon control sub-items should be added to the result list.