Contents Index Topic Contents | ||
Previous Topic: DTM_SETFORMAT Next Topic: DTM_SETMCFONT |
DTM_SETMCCOLOR
DTM_SETMCCOLOR wParam = (WPARAM)(INT) iColor; lParam = (LPARAM)(COLORREF) clr;Sets the color for a given portion of the month calendar within a date and time picker (DTP) control. You can send this message explicitly or use the DateTime_SetMonthCalColor macro.
- Returns a COLORREF value that represents the previous color setting for the specified portion of the month calendar control if successful. Otherwise, the message returns -1.
- iColor
- INT value specifying which month calendar color to set. This value can be one of the following:
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. - clr
- COLORREF value representing the color that will be set for the specified area of the month calendar.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.