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

void MonthCal_SetSelRange(
   hmc,
   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 lprgSysTimeArray[0], and the last selected date must be specified in lprgSysTimeArray[1]. The time members of these structures are ignored.

Return value

None

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