MonthCal_GetRange macro

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

Syntax


DWORD MonthCal_GetRange(
  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 will receive the date limit information. The minimum limit is set in lprgSysTimeArray[0], and lprgSysTimeArray[1] receives the maximum limit. If either element is set to all zeros, then no corresponding limit is set for the month calendar control. The time members of these structures will not be modified. This parameter must be a valid address and cannot be NULL.

Return value

Returns a DWORD value that can be zero (no limits are set) or a combination of the following values that specify limit information:

Return codeDescription
GDTR_MAX

There is a maximum limit set for the control; lprgSysTimeArray[0] is valid and contains the applicable date information.

GDTR_MIN

There is a minimum limit set for the control; lprgSysTimeArray[1] is valid and contains the applicable date information.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft