Export (0) Print
Expand All

DateTime_GetMonthCalColor macro

Gets 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_GETMCCOLOR message explicitly.

Syntax


COLORREF DateTime_GetMonthCalColor(
  HWND hwndDP,
  int iColor
);

Parameters

hwndDP

Type: HWND

A handle to a DTP control.

iColor

Type: int

A value of type int specifying which month calendar color to retrieve. This value can be one of the following.

ValueMeaning
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.

 

Return value

Returns a COLORREF value that represents the color setting for the specified portion of the month calendar control if successful. Otherwise, the macro returns -1.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft