CBCGPRibbonCategory* CBCGPRibbonBar::AddContextCategory | ( | LPCTSTR | lpszName, |
LPCTSTR | lpszContextName, | ||
UINT | uiContextID, | ||
BCGPRibbonCategoryColor | clrContext, | ||
UINT | uiSmallImagesResID, | ||
UINT | uiLargeImagesResID, | ||
UINT | uiMediumImagesResID, | ||
CSize | sizeSmallImage = CSize(16, 16) , |
||
CSize | sizeLargeImage = CSize(32, 32) , |
||
CSize | sizeMediumImage = CSize(20, 20) , |
||
CRuntimeClass * | pRTI = NULL |
||
) |
Adds a context category.
Use this function to add a context category. Context categories are a special type of categories, which can be shown or hidden at runtime depending on the current application context. For example, when the user selects an object, you can display special tabs with context categories intended to manipulate the specific selected object.
The context category color should be one of the following values:
lpszName | Specifies the category name. |
lpszContextName | Specifies the category context name. |
uiContextID | Context ID. |
clrContext | Context category color. |
uiSmallImagesResID | Resource ID of category small image. |
uiLargeImagesResID | Resource ID of category large image. |
uiMediumImagesResID | Resource ID of medium (20x20, used in simplified mode)images. |
sizeSmallImage | Size of small image. |
sizeLargeImage | Size of large image. |
sizeMediumImage | Specifies size of medium (20x20, used in simplified mode) images. |
pRTI | A new category runtime class. Should be either NULL or derived from CBCGPRibbonCategory. |