MCM_SETCURRENTVIEW message

Sets the current view of the calendar. You can send this message explicitly or by using the MonthCal_SetCurrentView macro.

Parameters

wParam

Must be zero.

lParam

New view. One of the following constants.

Value Meaning
MCMV_MONTH
Monthly view.
MCMV_YEAR
Annual view.
MCMV_DECADE
Decade view.
MCMV_CENTURY
Century view.

Return value

Returns nonzero if successful, or zero otherwise.

Requirements

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