CMonthCal.SetColormethod
Sets the color for a given portion of a month calendar control.
Syntax
FUNCTION SetColor (BYVAL hMonthCal AS HWND, BYVAL iColor AS LONG, BYVAL clr AS COLORREF) AS COLORREF
Parameters
| Name | Description | |
|---|---|---|
hMonthCal | Handle to a month calendar control. | |
clr | COLORREF value that represents the color that will be set for the specified area of the month calendar. | |
iColor | Value of type int specifying which month calendar color to set. This value can be one of the following: |
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.
Description
Sets the color for a given portion of a month calendar control.
Remarks
If visual styles are active, this method has no effect except when iColor is MCSC_BACKGROUND.
Reference
- Include file
CMontCal.inc - Defined in AfxNova/CMonthCal.inc:231
- Documented in Windows/WIndows Controls/CMonthCal Class.md
- Topic: CMonthCal Class