MCM_GETRANGE message

Retrieves the minimum and maximum allowable dates set for a month calendar control. You can send this message explicitly or by using the MonthCal_GetRange macro.

Parameters

wParam
Must be zero.
lParam

Pointer to a two-element array of SYSTEMTIME structures that will receive the date limit information. The minimum limit is set in lprgSysTimeArray[0], and lprgSysTimeArray[1] receives the maximum limit. If either element is set to all zeros, then no corresponding limit is set for the month calendar control. This parameter must be a valid address and cannot be NULL.

Return value

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

Return codeDescription
GDTR_MAX

A maximum limit is set for the control; lprgSysTimeArray[0] is valid and contains the applicable date information.

GDTR_MIN

A minimum limit is set for the control; lprgSysTimeArray[1] is valid and contains the applicable date information.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

See also

Times in the Month Calendar Control

 

 

Community Additions

ADD
Show:
© 2014 Microsoft