MonthCal_GetCalendarCount macro (commctrl.h)

Gets the number of calendars currently displayed in the calendar control. You can use this macro or send the MCM_GETCALENDARCOUNT message explicitly.

Syntax

DWORD MonthCal_GetCalendarCount(
   HWND hmc
);

Parameters

hmc

Type: HWND

Handle to a month calendar control.

Return value

Type: DWORD

Number of calendars currently displayed in the calendar control. The maximum number of allowed calendars is 12.

Requirements

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