DateTime_SetMonthCalStyle macro (commctrl.h)

Sets the style for a specified date and time picker (DTP) control. Use this macro or send the DTM_SETMCSTYLE message explicitly.

Syntax

LRESULT DateTime_SetMonthCalStyle(
  [in] HWND  hdp,
  [in] DWORD dwStyle
);

Parameters

[in] hdp

Type: HWND

A handle to the DTP.

[in] dwStyle

Type: DWORD

Month Calendar Control Styles

Return value

Type: LRESULT

Returns the value of the previous style.

Requirements

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