CBCGPRibbonPanel* CBCGPRibbonDialogBar::AddPanel | ( | LPCTSTR | lpszPanelName, |
const CBCGPToolBarImages & | icons, | ||
int | nIconIndex, | ||
int | nRows = 3 , |
||
CRuntimeClass * | pRTI = NULL |
||
) |
Adds a new panel to Ribbon Control.
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.
lpszPanelName | Specifies the name of the panel. |
icons | A reference to the icons list. |
nIconIndex | The index of panel's icon in the icons list. The icon is displayed when the panel is collapsed. |
nRows | Specifies how many rows of elements the panel can display. In the standard Ribbon Control this value is hard coded (3 rows). |
pRTI | A pointer to runtime class information. Useful for custom ribbon panels. |