| CBCGPRibbonPanel* CBCGPRibbonDialogBar::AddPanel | ( | LPCTSTR | lpszPanelName, |
| HICON | hIcon = 0, |
||
| int | nRows = 3, |
||
| CRuntimeClass * | pRTI = NULL, |
||
| BOOL | bAutoDestroyIcon = TRUE |
||
| ) |
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. |
| hIcon | A handle to panel's icon. This 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. |
| bAutoDestroyIcon | If TRUE, the icon specified by hIcon will be destroyed automatically along with the panel. |