BOOL CBCGPRibbonDialogBar::Create | ( | LPCTSTR | lpszCaption, |
CWnd * | pParentWnd, | ||
const RECT & | rect, | ||
UINT | nImagesSmall, | ||
UINT | nImagesLarge, | ||
BOOL | bHasGripper, | ||
UINT | nID, | ||
DWORD | dwStyle, | ||
DWORD | dwTabbedStyle = CBRS_BCGP_REGULAR_TABS , |
||
DWORD | dwBCGStyle = dwDefaultBCGDockingBarStyle , |
||
CCreateContext * | pContext = NULL |
||
) |
Creates a Ribbon dialog bar
Creates a window and initializes the docking control bar and embedded Ribbon Control.
Call this function to initialize the docking control bar and Ribbon Control. The embedded Ribbon Control is created internally during processing of WM_CREATE message and you can obtain a reference to it by using GetRibbon() method.
lpszCaption | Points to a null-terminated character string that contains the window name. |
pParentWnd | A pointer to a parent window. |
rect | The size and position of the window, in client coordinates of its parent window. |
nImagesSmall | Resource ID of image list with small Ribbon images. |
nImagesLarge | Resource ID of image list with large Ribbon images. |
bHasGripper | Specifies whether the control bar should be created with caption (TRUE) or without caption (FALSE). |
nID | The ID of the child window. Must be unique if you want to save docking state for this docking control bar. |
dwStyle | Specifies the window style attributes. |
dwTabbedStyle | Specifies the tabbed style of a tabbed window that will be created when the user drags another control bar on the caption of this control bar. |
dwBCGStyle | Specifies the additional BCGP style attributes. |
pContext | The create context of the window. |