CMFCRibbonCategory::AddPanel
Visual Studio 2008
Updated: October 2008
Creates a ribbon panel for the ribbon category.
CMFCRibbonPanel* AddPanel( LPCTSTR lpszPanelName, HICON hIcon = 0, CRuntimeClass* pRTI = NULL );
The following example demonstrates how to use the AddPanel method in the CMFCRibbonCategory class.
// Create "Favorites" panel: strTemp.LoadString(IDS_RIBBON_FAVORITES); // CMFCRibbonCategory* pCategoryCustom CMFCRibbonPanel* pPanelFavorites = pCategoryCustom->AddPanel(strTemp, m_PanelImages.ExtractIcon(15));