MCM_SETCOLORMCM_SETCOLOR*
*Contents  *Index  *Topic Contents
*Previous Topic: MCM_HITTEST
*Next Topic: MCM_SETCURSEL

MCM_SETCOLOR


MCM_SETCOLOR
    wParam = (WPARAM)(INT) iColor;
    lParam = (LPARAM)(COLORREF) clr;

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.

iColor
INT value specifying which month calendar color to set. This value can be one of the following:
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.
clr
COLORREF value that represents the color that will be set for the specified area of the month calendar.

Version 4.70


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.