Compartilhar via


CMonthCalCtrl::SetYearView

Sets the current month calendar control to year view.

BOOL SetYearView();

Return Value

true if this method is successful; otherwise, false.

Remarks

This method uses the CMonthCalCtrl::SetCurrentView method to set the view to MCMV_YEAR, which represents the annual view.

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_SETCURRENTVIEW

CMonthCalCtrl::SetCurrentView

Other Resources

CMonthCalCtrl Members