Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the selection for a month calendar control to a given date range.
BOOL SetSelRange(
   const COleDateTime& pMinRange,
   const COleDateTime& pMaxRange 
);
BOOL SetSelRange(
   const CTime& pMinRange,
   const CTime& pMaxRange 
);
BOOL SetSelRange(
   const LPSYSTEMTIME pMinRange,
   const LPSYSTEMTIME pMaxRange 
);
Parameters
- pMinRange 
 A pointer to a COleDateTime object, a CTime object, or SYSTEMTIME structure containing the date at the lowest end of the range.
- pMaxRange 
 A pointer to a COleDateTime object, a CTime object, or SYSTEMTIME structure containing the date at the highest end of the range.
Return Value
Nonzero if successful; otherwise 0.
Remarks
This member function implements the behavior of the Win32 message MCM_SETSELRANGE, as described in the Windows SDK. In MFC's implementation of SetSelRange, you can specify COleDateTime usage, a CTime usage, or a SYSTEMTIME structure usage.
Requirements
Header: afxdtctl.h