BOOL CBCGPCaptionBar::Create | ( | DWORD | dwStyle, |
CWnd * | pParentWnd, | ||
UINT | uID, | ||
int | nHeight = -1 , |
||
BOOL | bIsMessageBarMode = FALSE |
||
) |
Creates the Windows control and attaches it to the CBCGPCaptionBar object.
You construct a CBCGPCaptionBar object in two steps. First call the constructor, then call Create(), which creates the Windows control and attaches it to the CBCGPCaptionBar object.
dwStyle | Specifies the caption bar styles. |
pParentWnd | Specifies the caption bar control's parent window, usually a CFrameWnd - derived. It must not be NULL. |
uID | Specifies ID of caption bar control. |
nHeight | Specifies a height, in pixels, of the caption bar control. If it is -1, the height is calculated according to the height of icon, text and button. |
bIsMessageBarMode | Tells whether the caption bar works in the "message bar" mode. |