MCM_SETSELRANGE message

Sets the selection for a month calendar control to a given date range. You can send this message explicitly or by using the MonthCal_SetSelRange macro.

Parameters

wParam

Must be zero.

lParam

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 lpSysTimeArray[0], and the last selected date must be specified in lpSysTimeArray[1].

Return value

Returns nonzero if successful, or zero otherwise. This message will fail if applied to a month calendar control that does not use the MCS_MULTISELECT style.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h

See also

Times in the Month Calendar Control