DateTime_SetMonthCalColor macro (commctrl.h)
Sets the color for a given portion of the month calendar within a date and time picker (DTP) control. You can use this macro or send the DTM_SETMCCOLOR message explicitly.
Syntax
void DateTime_SetMonthCalColor(
hdp,
iColor,
clr
);
Parameters
hdp
Type: HWND
A handle to a DTP control.
iColor
Type: int
A value of type int specifying which month calendar color to set. This value can be one of the following:
clr
Type: COLORREF
A COLORREF value that represents the color that will be set for the specified area of the month calendar.
Return value
None
Remarks
When visual styles are enabled, this macro has no effect except when iColor is MCSC_BACKGROUND.
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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for