DDX_MonthCalCtrl
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
);
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 month calendar control associated with the member variable.value
A reference to a CTime or COleDateTime member variable of the dialog box, form view, or control view object with which data is exchanged.
Remarks
注意
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.
Requirements
Header: afxdd_.h