Visual Studio 2010 - Visual C++
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
Remarks
Note
|
|---|
|
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
See Also
Note