Contents Index Topic Contents | ||
Previous Topic: MonthCal_SetRange Next Topic: MonthCal_SetToday |
MonthCal_SetSelRange
BOOL MonthCal_SetSelRange( HWND hwndMC, LPSYSTEMTIME lprgSysTimeArray );Sets the selection for a month calendar control to a given date range. You can use this macro or send the MCM_SETSELRANGE message explicitly.
- Returns nonzero if successful, or zero otherwise. This macro will fail if applied to a month calendar control that does not use the MCS_MULTISELECT style.
- hwndMC
- Handle to a month calendar control.
- lprgSysTimeArray
- Address of a two-element array of SYSTEMTIME structures that contain date information representing the selection limits. The first selected date must be specified in lpSysTimeArray[0], and the last selected date must be specified in lpSysTimeArray[1]. The time members of these structures are ignored.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.