MonthCal_SetSelRange macro (commctrl.h)
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.
Syntax
BOOL MonthCal_SetSelRange(
HWND hmc,
LPSYSTEMTIME rgst
);
Parameters
hmc
Type: HWND
Handle to a month calendar control.
rgst
Type: LPSYSTEMTIME
Pointer to a two-element array of SYSTEMTIME structures that contain date information representing the selection limits. The first selected date must be specified in rgst[0], and the last selected date must be specified in rgst[1]. The time members of these structures are ignored.
Return value
Type: BOOL
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |