CMonthCalCtrl::IsYearView

Indicates whether the current view of the current month calendar control is the year view.

BOOL IsYearView() const;

Return Value

true if the current view is the year view; otherwise, false.

Remarks

This method sends the MCM_GETCURRENTVIEW message, which is described in the Windows SDK. If that message returns MCMV_YEAR, this method returns true.

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

CMonthCalCtrl::GetCurrentView