MonthCal_GetMonthRange
This macro retrieves date information (using SYSTEMTIME structures) that represents the high and low limits of a month calendar controls display.
DWORD MonthCal_GetMonthRange(
HWND hwndMC,
DWORD dwFlag,
LPSYSTEMTIME lprgSysTimeArray );
Parameters
hwndMC
Handle to a month calendar control.dwFlag
Specifies the scope of the range limits to be retrieved. It is one of the following values:Value Description 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
Long 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 structure are not modified.
Return Values
Returns an INT that represents the range, in months, spanned by the two limits returned at lprgSysTimeArray.
Remarks
Related message: MCM_GETMONTHRANGE
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Commctrl.h | Commctrl.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.