Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


Call DDV_MinMaxMonth to verify that the time/date value in the month calendar control (CMonthCalCtrl) associated with refValue falls between refMinRange and refMaxRange.

void AFXAPI DDV_MinMaxMonth(
   CDataExchange* pDX,
   CTime& refValue,
   const CTime* refMinRange,
   const CTime* refMaxRange 
void AFXAPI DDV_MinMaxMonth(
   CDataExchange* pDX,
   COleDateTime& refValue,
   const COleDateTime* refMinRange,
   const COleDateTime* refMaxRange 



A pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction.


A reference to an object of type CTime or COleDateTime associated with a member variable of the dialog box, form view, or control view object. This object contains the data to be validated. MFC passes this reference when DDV_MinMaxMonth is called.


Minimum date/time value allowed.


Maximum date/time value allowed.

For more information about DDV, see Dialog Data Exchange and Validation.

Community Additions

© 2015 Microsoft