The DDX_MonthCalCtrl function manages the transfer of date data between a month calendar control (CMonthCalCtrl) in a dialog box, form view, or control view object and either a CTime or a COleDateTime data member of the dialog box, form view, or control view object.
void AFXAPI DDX_MonthCalCtrl( CDataExchange* pDX, int nIDC, CTime& value ); void AFXAPI DDX_MonthCalCtrl( CDataExchange* pDX, int nIDC, COleDateTime& value );
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.
The resource ID of the month calendar control associated with the member variable.
A reference to a CTime or COleDateTime member variable of the dialog box, form view, or control view object with which data is exchanged.
The control manages a date value only. The time fields in the time object are set to reflect the creation time of the control window, or whatever time was set in the control with a call to CMonthCalCtrl::SetCurSel.
When DDX_MonthCalCtrl is called, value is set to the current state of the month calendar control.
For more information about DDX, see Dialog Data Exchange and Validation.