BCGControlBar Pro for MFC
void CBCGPRibbonPaletteButton::AddGroup ( LPCTSTR  lpszGroupName,
UINT  uiImagesPaletteResID,
int  cxPaletteImage,
UINT  uiImagesPaletteSimplifiedResID = 0,
int  cxPaletteImageSimplified = 0 
)

Adds a new group to the gallery.

The Ribbon Gallery can display palette items split on several group. Each group may have a caption.

Use this method to add a group to the Gallery.

Parameters
lpszGroupNameSpecifies the group name.
uiImagesPaletteResIDSpecifies a resource ID of an image list, which contains images for the group.
cxPaletteImageSpecifies the width of an image.
uiImagesPaletteSimplifiedResIDSpecifies a resource ID of an image list, which contains images for the group. This image list will be displayed in the Ribbon simplified mode only.
cxPaletteImageSimplifiedSpecifies the width of an image (simplified mode).