MonthCal_GetMaxSelCount

This macro retrieves the maximum selectable date range that is set for a month calendar control. You can use this macro or send the MCM_GETMAXSELCOUNT message explicitly.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later
Related message: MCM_SETMAXSELCOUNT

Syntax

DWORD MonthCal_GetMaxSelCount(HWND hwndMC);

Parameters

hwndMC

Handle to a month calendar control.

Return Values

You can change the selectable date range using the MCM_SETMAXSELCOUNT message.

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