MonthCal_SetRangeMonthCal_SetRange*
*



Contents  *



Index  *Topic Contents
*Previous Topic: MonthCal_SetMonthDelta
*Next Topic: MonthCal_SetSelRange

MonthCal_SetRange


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

Sets the minimum and maximum allowable dates for a month calendar control. You can use this macro or send the MCM_SETRANGE message explicitly.

hwndMC
Handle to a month calendar control.
fWhichLimit
Flag values that specify which date limits are being set. This value must be one or both of the following:
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
Address of a two-element array of SYSTEMTIME structures that contain the date limits. 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.

Version 4.70


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.