void AFXAPI DDX_DateTimeCtrl( CDataExchange* pDX, int nIDC, CTime& value );
void AFXAPI DDX_DateTimeCtrl( CDataExchange* pDX, int nIDC, COleDateTime& value );
Parameters
pDX
A pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction. You don’t need to delete this object.
nIDC
The resource ID of the date and time picker control associated with the member variable.
value
A reference to a CTime or COleDateTime member variable, dialog box, form view, or control view object with which data is exchanged.
Remarks
The DDX_DateTimeCtrl function manages the transfer of date and/or time data between a date and time picker control (CDateTimeCtrl) in a dialog box or form view object and either a CTime or a COleDateTime data member of the dialog box or form view object.
When DDX_DateTimeCtrl is called, value is set to the current state of the date and time picker control, or the control is set to value, depending on the direction of the exchange.
For more information about DDX, see Adding a Dialog Box in Visual C++ Tutorials and Dialog Data Exchange and Validation in Visual C++ Programmer’s Guide.
See Also CDateTimeCtrl, CDateTimeCtrl::SetRange, CDateTimeCtrl::GetRange, DDV_MinMaxDateTime