MonthCal_GetMaxSelCount macro (commctrl.h)

Retrieves the maximum date range that can be selected in a month calendar control. You can use this macro or send the MCM_GETMAXSELCOUNT message explicitly.

Syntax

DWORD MonthCal_GetMaxSelCount(
   HWND hmc
);

Parameters

hmc

Type: HWND

Handle to a month calendar control.

Return value

Type: DWORD

Returns an INT value that represents the total number of days that can be selected for the control.

Remarks

You can change the maximum date range that can be selected by using the MCM_SETMAXSELCOUNT message.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h