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.
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. |
uiMediumImagesResID | Resource ID of medium (20x20, used in simplified mode)images. |
sizeSmallImage | Specifies size of small (16x16) images. |
sizeLargeImage | Specifies size of large (32x32) images. |
sizeMediumImage | Specifies size of medium (20x20, used in simplified mode) images. |
nInsertAt | Zero based index to insert the category at. |
pRTI | A new category runtime class. Should be either NULL or derived from CBCGPRibbonCategory. |