CDateTimeCtrl::Create

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

Return Value

Nonzero if creation was successful; otherwise 0.

Parameters

dwStyle

Specifies the combination of date time control styles. See Date and Time Picker Control Styles in the Platform SDK for more information about date and time picker styles.

rect

A reference to a RECT structure, which is the position and size of the date and time picker control.

pParentWnd

A pointer to a CWnd object that is the parent window of the date and time picker control. It must not be NULL.

nID

Specifies the date and time picker control's control ID.

Remarks

Create a date and time picker control in two steps:

  1. Call CDateTimeCtrl to construct a CDateTimeCtrl object.

  2. Call this member function, which creates the Windows date and time picker control and attaches it to the CDateTimeCtrl object.

When you call Create, the common controls are initialized.

CDateTimeCtrl OverviewClass MembersHierarchy Chart