BCGControlBar Pro for MFC
CBCGPRibbonPanel* CBCGPRibbonDialogBar::AddPanel ( LPCTSTR  lpszPanelName,
const CBCGPToolBarImages icons,
int  nIconIndex,
int  nRows = 3,
CRuntimeClass *  pRTI = NULL 
)

Adds a new panel to Ribbon Control.

Returns
A pointer to the newly created ribbon panel.

Call this function to add panels to the embedded Ribbon Control. This method returns a pointer to a Ribbon Panel, which should be used to add Ribbon elements like buttons and others.

Parameters
lpszPanelNameSpecifies the name of the panel.
iconsA reference to the icons list.
nIconIndexThe index of panel's icon in the icons list. The icon is displayed when the panel is collapsed.
nRowsSpecifies how many rows of elements the panel can display. In the standard Ribbon Control this value is hard coded (3 rows).
pRTIA pointer to runtime class information. Useful for custom ribbon panels.