Creates a new main ribbon category for the ribbon bar.
CSize sizeSmallImage = CSize(16, 16),
CSize sizeLargeImage = CSize(32, 32)
Name of the main ribbon category.
Resource ID of small images.
Resource ID of large images.
The size of small images.
The size of large images.
Pointer to the new main ribbon category if the method was successful; otherwise,
If a main ribbon category already exists, it is deleted.
The following example demonstrates how to use the
AddMainCategory method in the CMFCRibbonBar class.
// m_wndRibbonBar is declared as a protected member variable
// CMFCRibbonBar m_wndRibbonBar.
// strTemp is a CString variable.
CMFCRibbonMainPanel* pMainPanel = m_wndRibbonBar.AddMainCategory(strTemp,
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback