Month Calendar Control Styles

The following style constants are used when creating month calendar controls.

ConstantDescription
MCS_DAYSTATE

Version 4.70. The month calendar sends MCN_GETDAYSTATE notifications to request information about which days should be displayed in bold.

MCS_MULTISELECT

Version 4.70. The month calendar enables the user to select a range of dates within the control. By default, the maximum range is one week. You can change the maximum range that can be selected by using the MCM_SETMAXSELCOUNT message.

MCS_WEEKNUMBERS

Version 4.70. The month calendar control displays week numbers (1-52) to the left of each row of days. Week 1 is defined as the first week that contains at least four days.

MCS_NOTODAYCIRCLE

Version 4.70. The month calendar control does not circle the "today" date.

MCS_NOTODAY

Version 4.70.The month calendar control does not display the "today" date at the bottom of the control.

MCS_NOTRAILINGDATES

Windows Vista.Dates from the previous and next months are not displayed in the current month's calendar.

MCS_SHORTDAYSOFWEEK

Windows Vista.Short day names are displayed in the header.

MCS_NOSELCHANGEONNAV

Windows Vista. The selection is not changed when the user navigates next or previous in the calendar. This allows the user to select a range larger than is visible.

Requirements

Header

CommCtrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.