Skip to content

Latest commit

 

History

History
144 lines (121 loc) · 3.92 KB

nf-commctrl-monthcal_setcolor.md

File metadata and controls

144 lines (121 loc) · 3.92 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:commctrl.MonthCal_SetColor
MonthCal_SetColor macro (commctrl.h)
Sets the color for a given portion of a month calendar control. You can use this macro or send the MCM_SETCOLOR message explicitly.
MCSC_BACKGROUND
MCSC_MONTHBK
MCSC_TEXT
MCSC_TITLEBK
MCSC_TITLETEXT
MCSC_TRAILINGTEXT
MonthCal_SetColor
MonthCal_SetColor macro [Windows Controls]
_win32_MonthCal_SetColor
_win32_MonthCal_SetColor_cpp
commctrl/MonthCal_SetColor
controls.MonthCal_SetColor
controls._win32_MonthCal_SetColor
controls\MonthCal_SetColor.htm
Controls
VS|Controls|~\controls\monthcal\macros\monthcal_setcolor.htm
12/05/2018
MCSC_BACKGROUND, MCSC_MONTHBK, MCSC_TEXT, MCSC_TITLEBK, MCSC_TITLETEXT, MCSC_TRAILINGTEXT, MonthCal_SetColor, MonthCal_SetColor macro [Windows Controls], _win32_MonthCal_SetColor, _win32_MonthCal_SetColor_cpp, commctrl/MonthCal_SetColor, controls.MonthCal_SetColor, controls._win32_MonthCal_SetColor
commctrl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
MonthCal_SetColor
commctrl/MonthCal_SetColor
c++
APIRef
kbSyntax
HeaderDef
Commctrl.h
MonthCal_SetColor

MonthCal_SetColor macro

-description

Sets the color for a given portion of a month calendar control. You can use this macro or send the MCM_SETCOLOR message explicitly.

-parameters

-param hmc

Type: HWND

Handle to a month calendar control.

-param iColor

Type: INT

Value of type int specifying which month calendar color to set. This value can be one of the following:

Value Meaning
MCSC_BACKGROUND
Set the background color displayed between months.
MCSC_MONTHBK
Set the background color displayed within the month.
MCSC_TEXT
Set the color used to display text within a month.
MCSC_TITLEBK
Set the background color displayed in the calendar's title.
MCSC_TITLETEXT
Set the color used to display text within the calendar's title.
MCSC_TRAILINGTEXT
Set the color used to display header day and trailing day text. Header and trailing days are the days from the previous and following months that appear on the current month calendar.

-param clr

Type: COLORREF

COLORREF value that represents the color that will be set for the specified area of the month calendar.

-remarks

If visual styles are active, this macro has no effect except when iColor is MCSC_BACKGROUND.