Help Center

CMonthCal.GetSelRangemethod

Retrieves date information that represents the upper and lower limits of the date range currently selected by the user.

WindowsmethodCMontCal.incdocumented

Syntax

FUNCTION GetSelRange (BYVAL hMonthCal AS HWND, BYVAL rgst AS SYSTEMTIME PTR) AS LONG

Parameters

NameDescription
hMonthCalHandle to a month calendar control.
rgstPointer to a two-element array of SYSTEMTIME structures that will receive the lower and upper limits of the user's selection. The lower and upper limits are placed in rgst(0) and rgst(1), respectively. The time members of these structures will not be modified. This parameter must be a valid address and cannot be NULL.

Return value

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

Description

Retrieves date information that represents the upper and lower limits of the date range currently selected by the user.

Reference

  • Include file CMontCal.inc
  • Defined in AfxNova/CMonthCal.inc:187
  • Documented in Windows/WIndows Controls/CMonthCal Class.md
  • Topic: CMonthCal Class