BCGControlBar Pro for MFC
void CBCGPRibbonGalleryCtrl::AddGroup ( LPCTSTR  lpszGroupName,
CSize  sizeIcon,
int  nIconsNum,
BOOL  bRecalcLayout = TRUE 

Adds a group to a Ribbon Gallery control with a custom drawing.

Call this function to add a group to a Ribbon Gallery control.

Specify icon size and number of items. You'll have to override OnDrawGalleryItem() in a derived class.

lpszGroupNameSpecifies a group name.
sizeIconSpecifies icon (image) size.
nIconsNumSpecifies number of items in a group.
bRecalcLayoutIf TRUE, a Gallery control should recalculate layout when a group has been added.