The following table shows the month calendar controls messages, with a description of the purpose of each.
| Programming element | Description |
|---|---|
| MCM_GETCOLOR | This message retrieves the color for a specified portion of a month calendar control. |
| MCM_GETCURSEL | This message retrieves the system time portrayed by the currently selected date. |
| MCM_GETFIRSTDAYOFWEEK | This message retrieves the first day of the week for a month calendar control. |
| MCM_GETMAXNONEWIDTH | This message retrieves the maximum width of the None string in a month calendar control. |
| MCM_GETMAXSELCOUNT | This message retrieves the maximum selectable date range that is set for a month calendar control. |
| MCM_GETMAXTODAYWIDTH | This message retrieves the maximum width of the Today string in a month calendar control. |
| MCM_GETMINREQRECT | This message retrieves the minimum size required to display a full month in a month calendar control. |
| MCM_GETMONTHDELTA | This message retrieves the scroll rate for a month calendar control. |
| MCM_GETMONTHRANGE | This message, using SYSTEMTIME structures, retrieves date information that represents the high and low limits of a month calendar control's display. |
| MCM_GETRANGE | This message retrieves the minimum and maximum allowable dates set for a month calendar control. |
| MCM_GETSELRANGE | This message retrieves date information that represents the upper and lower limits of the date range currently selected by the user |
| MCM_GETTODAY | This message retrieves the date information for the date specified as today for a month calendar control. |
| MCM_HITTEST | This message determines which portion of a month calendar control is at a specified point on the screen. |
| MCM_SETCOLOR | This message sets the color for a specified portion of a month calendar control. |
| MCM_SETCURSEL | This message sets the currently selected date for a month calendar control. |
| MCM_SETDAYSTATE | This message sets the display for days in all months that are currently visible within a month calendar control. |
| MCM_SETFIRSTDAYOFWEEK | This message sets the first day of the week for a month calendar control. |
| MCM_SETMAXSELCOUNT | This message sets the maximum number of days that can be selected in a month calendar control. |
| MCM_SETMONTHDELTA | This message sets the scroll rate for a month calendar control. |
| MCM_SETRANGE | This message sets the minimum and maximum allowable dates for a month calendar control. |
| MCM_SETSELRANGE | This message sets the selection for a month calendar control to a specified date range. |
| MCM_SETTODAY | This message sets the today selection for a month calendar control. |
See Also
Month Calendar Controls Reference
Send Feedback on this topic to the authors