Compartilhar via


Month Calendar Controls Macros

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following table shows the month calendar controls macros, with a description of the purpose of each.

Programming element Description

MonthCal_GetColor

This macro retrieves the color for a specified portion of a month calendar control.

MonthCal_GetCurSel

This macro retrieves the system time portrayed by the currently selected date.

MonthCal_GetFirstDayOfWeek

This macro retrieves the first day of the week for a month calendar control.

MonthCal_GetMaxSelCount

This macro retrieves the maximum selectable date range that is set for a month calendar control.

MonthCal_GetMaxTodayWidth

This macro retrieves the maximum width of the Today string in a month calendar control.

MonthCal_GetMinReqRect

This macro retrieves the minimum size required to display a full month in a month calendar control.

MonthCal_GetMonthDelta

This macro retrieves the scroll rate for a month calendar control.

MonthCal_GetMonthRange

This macro retrieves date information (using SYSTEMTIME structures) that represents the high and low limits of a month calendar control's display.

MonthCal_GetRange

This macro retrieves the minimum and maximum allowable dates set for a month calendar control.

MonthCal_GetSelRange

This macro retrieves date information that represents the upper and lower limits of the date range currently selected by the user.

MonthCal_GetToday

This macro retrieves the date information for the date specified as today for a month calendar control.

MonthCal_HitTest

This macro determines which portion of a month calendar control is at a specified point on the screen.

MonthCal_SetColor

This macro sets the color for a specified portion of a month calendar control.

MonthCal_SetCurSel

This macro sets the currently selected date for a month calendar control.

MonthCal_SetDayState

This macro sets the display for days in all months that are currently visible within a month calendar control.

MonthCal_SetFirstDayOfWeek

This macro sets the first day of the week for a month calendar control.

MonthCal_SetMaxSelCount

This macro sets the maximum number of days that can be selected in a month calendar control.

MonthCal_SetMonthDelta

This macro sets the scroll rate for a month calendar control.

MonthCal_SetRange

This macro sets the minimum and maximum allowable dates for a month calendar control.

MonthCal_SetSelRange

This macro sets the selection for a month calendar control to a specified date range.

MonthCal_SetToday

This macro sets the today selection for a month calendar control, because the control does not automatically update the today selection when the time passes midnight for the current day.

See Also

Reference

Month Calendar Controls Reference