MonthCal_GetMonthRange macro
Retrieves date information (using SYSTEMTIME structures) that represents the high and low limits of a month calendar control's display. You can use this macro or send the MCM_GETMONTHRANGE message explicitly.
Syntax
INT MonthCal_GetMonthRange( HWND hwndMC, DWORD dwFlag, LPSYSTEMTIME lprgSysTimeArray );
Parameters
- hwndMC
-
Type: HWND
Handle to a month calendar control.
- dwFlag
-
Type: DWORD
Value specifying the scope of the range limits to be retrieved. This value must be one of the following:
Value Meaning - 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.
- lprgSysTimeArray
-
Type: LPSYSTEMTIME
Pointer to a two-element array of SYSTEMTIME structures that will receive the lower and upper limits of the scope specified by dwFlag. The lower and upper limits are placed in lprgSysTimeArray[0] and lprgSysTimeArray[1], respectively. The time members of these structures will not be modified. 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 lprgSysTimeArray.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
Send comments about this topic to Microsoft
Build date: 10/27/2012
