MonthCal_GetColor macro (commctrl.h)

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

Syntax

void MonthCal_GetColor(
   hmc,
   iColor
);

Parameters

hmc

Type: HWND

Handle to a month calendar control.

iColor

Type: INT

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

Value Meaning
MCSC_BACKGROUND
Retrieve the background color displayed between months.
MCSC_MONTHBK
Retrieve the background color displayed within the month.
MCSC_TEXT
Retrieve the color used to display text within a month.
MCSC_TITLEBK
Retrieve the background color displayed in the calendar's title.
MCSC_TITLETEXT
Retrieve the color used to display text within the calendar's title.
MCSC_TRAILINGTEXT
Retrieve 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.

Return value

None

Requirements

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