다음을 통해 공유


DDV_MinMaxDateTime

Call DDV_MinMaxDateTime to verify that the time/date value in the date and time picker control (CDateTimeCtrl) associated with refValue falls between refMinRange and refMaxRange.

void AFXAPI DDV_MinMaxDateTime( 
   CDataExchange* pDX, 
   CTime& refValue, 
   const CTime* refMinRange, 
   const CTime* refMaxRange  
); 
void AFXAPI DDV_MinMaxDateTime( 
   CDataExchange* pDX, 
   COleDateTime& refValue, 
   const COleDateTime* refMinRange, 
   const COleDateTime* refMaxRange  
);

매개 변수

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

  • refValue
    A reference to a CTime or COleDateTime object associated with a member variable of the dialog box, form view, or control view object. This object contains the data to be validated.

  • refMinRange
    Minimum date/time value allowed.

  • refMaxRange
    Maximum date/time value allowed.

설명

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

요구 사항

Header: afxdd_.h

참고 항목

참조

DDX_DateTimeCtrl

DDV_MinMaxMonth

개념

MFC 매크로 및 전역

기타 리소스

Standard Dialog Data Validation Routines