DDV_MinMaxMonth

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

Parameters

pDX

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

refValue

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.

refMinRange

Minimum date/time value allowed.

refMaxRange

Maximum date/time value allowed.

Remarks

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

For more information about DDV, see Adding a Dialog Box in Visual C++ Tutorials and Dialog Data Exchange and Validation in Visual C++ Programmer’s Guide.

See Also   DDX_DateTimeCtrl, DDV_MinMaxMonth