Export (0) Print
Expand All

MCM_GETMONTHRANGE message

Retrieves date information (using SYSTEMTIME structures) that represents the high and low limits of a month calendar control's display. You can send this message explicitly or by using the MonthCal_GetMonthRange macro.

Parameters

wParam

Value specifying the scope of the range limits to be retrieved. This value must be one of the following:

ValueMeaning
GMR_DAYSTATE

Include preceding and trailing months of visible range that are only partially displayed.

GMR_VISIBLE

Include only those months that are entirely displayed.

 

lParam

Pointer to a two-element array of SYSTEMTIME structures that will receive the lower and upper limits of the scope specified by wParam. The lower and upper limits are placed in lprgSysTimeArray[0] and lprgSysTimeArray[1], respectively. This parameter must be a valid address and cannot be NULL.

Return value

Returns an INT value that represents the range, in months, spanned by the two limits returned at lParam.

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