Export (0) Print
Expand All
TRY
Expand Minimize
This topic has not yet been rated - Rate this topic

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  
);
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.

Note 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.

Header: afxdd_.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.