Creates a new main ribbon category for the ribbon bar.
- [in] lpszName
Name of the main ribbon category.
- [in] uiSmallImagesResID
Resource ID of small images.
- [in] uiLargeImagesResID
Resource ID of large images.
- [in] sizeSmallImage
The size of small images.
- [in] sizeLargeImage
The size of large images.
Pointer to the new main ribbon category if the method was successful; otherwise, NULL.
If a main ribbon category already exists, it is deleted.
The following example demonstrates how to use the AddMainCategory method in the CMFCRibbonBar class.