Export (0) Print
Expand All

MCM_SETCOLOR message

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

Parameters

wParam

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

ValueMeaning
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.

 

lParam

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

Return value

Returns a COLORREF value that represents the previous color setting for the specified portion of the month calendar control if successful. Otherwise, the return is -1.

Remarks

If visual styles are active, this message has no effect except when wParam is MCSC_BACKGROUND.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft