BCGControlBar Pro for MFC
CBCGPRibbonCategory* CBCGPRibbonBar::AddCategory ( LPCTSTR  lpszName,
UINT  uiSmallImagesResID,
UINT  uiLargeImagesResID,
CSize  sizeSmallImage = CSize(16, 16),
CSize  sizeLargeImage = CSize(32, 32),
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.
sizeSmallImageSpecifies size of small (16x16) images.
sizeLargeImageSpecifies size of large (32x32) images.
nInsertAtZero based index to insert the category at.
pRTIA new category runtime class. Should be either NULL or derived from CBCGPRibbonCategory.