CHeaderCtrl::Create

This method creates the header control and attach it to the CHeaderCtrl object.

To construct a CHeaderCtrl object, call the constructor, then call Create.

At a Glance

Header file: Afxcmn.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

Remarks

Windows CE supports two new styles for header controls. The HDS_DRAGDROP style allows drag-and-drop reordering of header items. The HDS_FULLDRAG style causes the header control to display column contents even while a user resizes a column.

See Also

CHeaderCtrl::CHeaderCtrl