CMonthCalCtrl::GetRange

DWORD GetRange( COleDateTime* pMinRange, COleDateTime* pMaxRange ) const;

DWORD GetRange( CTime* pMinRange, CTime* pMaxRange ) const;

DWORD GetRange( LPSYSTEMTIME pMinRange, LPSYSTEMTIME pMaxRange ) const;

Return Value

A DWORD that can be zero (no limits are set) or a combination of the following values that specify limit information.

Value Meaning
GDTR_MAX A maximum limit is set for the control; pMaxRange is valid and contains the applicable date information.
GDTR_MIN A minimum limit is set for the control; pMinRange is valid and contains the applicable date information.

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.

Remarks

This member function implements the behavior of the Win32 message MCM_GETRANGE, as described in the Platform SDK.

In MFC's implementation of GetRange, you can specify a COleDateTime usage, a CTime usage, or a SYSTEMTIME structure usage.

CMonthCalCtrl OverviewClass MembersHierarchy Chart

See Also   CMonthCalCtrl::SetRange