MonthCal_SetCurrentView macro

Sets the view for a month calendar control. You can use this macro or send the MCM_SETCURRENTVIEW message explicitly.

Syntax


BOOL MonthCal_SetCurrentView(
  HWND hmc,
  DWORD dwNewView
);

Parameters

hmc

Type: HWND

Handle to a month calendar control.

dwNewView

Type: DWORD

New view. One of the following constants.

ValueMeaning
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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft