BCGControlBar Pro for MFC
CBCGPRibbonCategory* CBCGPRibbonBar::AddCategory ( LPCTSTR  lpszName,
UINT  uiSmallImagesResID,
UINT  uiLargeImagesResID,
UINT  uiMediumImagesResID,
CSize  sizeSmallImage = CSize(16, 16),
CSize  sizeLargeImage = CSize(32, 32),
CSize  sizeMediumImage = CSize(20, 20),
int  nInsertAt = -1,
CRuntimeClass *  pRTI = NULL 
)

Adds a new category to ribbon control.

Returns
A pointer to newly created category. This pointer can be used to setup the category.

Use this function to add a new ribbon category. The category can be set up using the returned pointer.

Parameters
lpszNameCategory name.
uiSmallImagesResIDResource ID of small (16x16) images.
uiLargeImagesResIDResource ID of large (32x32)images.
uiMediumImagesResIDResource ID of medium (20x20, used in simplified mode)images.
sizeSmallImageSpecifies size of small (16x16) images.
sizeLargeImageSpecifies size of large (32x32) images.
sizeMediumImageSpecifies size of medium (20x20, used in simplified mode) images.
nInsertAtZero based index to insert the category at.
pRTIA new category runtime class. Should be either NULL or derived from CBCGPRibbonCategory.