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
COLORREF MonthCal_GetColor(
HWND hmc,
INT 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:
Return value
Type: COLORREF
Returns a COLORREF value that represents the color setting for the specified portion of the month calendar control if successful. Otherwise, the return is -1.
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 |