Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CMFCCaptionBar::Create

Creates the caption bar control and attaches it to the CMFCCaptionBar object.

BOOL Create(
   DWORD dwStyle,
   CWnd* pParentWnd,
   UINT uID,
   int nHeight=-1,
   BOOL bIsMessageBarMode=FALSE 
);
dwStyle

The logical OR combination of the caption bar styles.

pParentWnd

The parent window of the caption bar control.

uID

The ID of caption bar control.

nHeight

The height, in pixels, of the caption bar control. If it is -1, the height is calculated according to the height of the icon, the text and the button that the caption bar control displays.

bIsMessageBarMode

TRUE if the caption bar is in the message bar mode; FALSE otherwise.

TRUE if the caption bar control is created successfully; FALSE otherwise.

You construct a CMFCCaptionBar object in two steps. First you call the constructor, and then you call the Create method, which creates the Windows control and attaches it to the CMFCCaptionBar object.

Header: afxcaptionbar.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.