Partager via


CMonthCalCtrl::GetCalendarCount

Retrieves the number of calendars displayed in the current month calendar control.

int GetCalendarCount() const;

Return Value

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

Remarks

This method sends the MCM_GETCALENDARCOUNT message, which is described in the Windows SDK.

Requirements

Header: afxdtctl.h

This control is supported in Windows Vista and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

See Also

Reference

CMonthCalCtrl Class

Hierarchy Chart

MCM_GETCALENDARCOUNT

Other Resources

CMonthCalCtrl Members