Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This macro sets the minimum and maximum allowable dates for a month calendar control.
Syntax
BOOL MonthCal_SetRange( HWND hwndMC, DWORD fWhichLimit, LPSYSTEMTIME lprgSysTimeArray ); |
Parameters
- hwndMC
-
Handle to a month calendar control.
- fWhichLimit
-
Values that specify which limit dates are being set. It is one or both of the following values.
Value Description GDTR_MAX
The maximum allowable date is being set. The SYSTEMTIMEstructure at lprgSysTimeArray[1] must contain date information.
GDTR_MIN
The minimum allowable date is being set. The SYSTEMTIMEstructure at lprgSysTimeArray[0] must contain date information.
- lprgSysTimeArray
-
Long pointer to a two-element array of SYSTEMTIMEstructures that contains date limit information. The maximum limit must be in lpSysTimeArray[1] if GDTR_MAX is specified, and lpSysTimeArray[0] must contain the minimum limit if GDTR_MIN is specified. The time members of these structure are ignored.
Return Value
Nonzero indicates success. Zero indicates otherwise.
Remarks
Related message: MCM_SETRANGE
Requirements
Header | commctrl.h |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |