Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CHeaderCtrl::CreateEx

Creates a control (a child window) and associate it with the CHeaderCtrl object.

virtual BOOL CreateEx( 
   DWORD dwExStyle, 
   DWORD dwStyle, 
   const RECT& rect, 
   CWnd* pParentWnd, 
   UINT nID  
);

dwExStyle

Specifies the extended style of the control being created. For a list of extended Windows styles, see the dwExStyle parameter for CreateWindowEx in the Windows SDK.

dwStyle

The header control's style. For a description of header control styles, see Header Control Styles in the Windows SDK. See Create for a list of additional styles.

rect

A reference to a RECT structure describing the size and position of the window to be created, in client coordinates of pParentWnd.

pParentWnd

A pointer to the window that is the control's parent.

nID

The control's child-window ID.

Nonzero if successful; otherwise 0.

Use CreateEx instead of Create to apply extended Windows styles, specified by the Windows extended style preface WS_EX_.

Header: afxcmn.h

Show:
© 2015 Microsoft