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.
Use this function to add a new ribbon category. The category can be set up using the returned pointer.
lpszName | Category name. |
uiSmallImagesResID | Resource ID of small (16x16) images. |
uiLargeImagesResID | Resource ID of large (32x32)images. |
sizeSmallImage | Specifies size of small (16x16) images. |
sizeLargeImage | Specifies size of large (32x32) images. |
nInsertAt | Zero based index to insert the category at. |
pRTI | A new category runtime class. Should be either NULL or derived from CBCGPRibbonCategory. |