Export (0) Print
Expand All

MonthCal_SetSelRange macro

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 hwndMC,
  LPSYSTEMTIME lprgSysTimeArray
);

Parameters

hwndMC

Type: HWND

Handle to a month calendar control.

lprgSysTimeArray

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

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft