Share via


MonthCal_SetRange

This macro sets the minimum and maximum allowable dates for a month calendar control.

BOOL MonthCal_SetRange(
HWND hwndMC, 
DWORD fWhichLimit, 
LPSYSTEMTIME lprgSysTimeArray );

Parameters

  • hwndMC
    Handle to a month calendar control.

  • fWhichLimit
    Values that specify which limit dates are being set. It is one or both of the following values:

    Value Description
    GDTR_MAX The maximum allowable date is being set. The SYSTEMTIME structure at lprgSysTimeArray[1] must contain date information.
    GDTR_MIN The minimum allowable date is being set. The SYSTEMTIME structure at lprgSysTimeArray[0] must contain date information.
  • lprgSysTimeArray
    Long pointer to a two-element array of SYSTEMTIME structures that contains date limit information. The maximum limit must be in lpSysTimeArray[1] if GDTR_MAX is specified, and lpSysTimeArray[0] must contain the minimum limit if GDTR_MIN is specified. The time members of these structure are ignored.

Return Values

Nonzero indicates success. Zero indicates otherwise.

Remarks

Related message: MCM_SETRANGE

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Commctrl.h   Commctrl.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

SYSTEMTIME

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.