Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the date and time picker controls messages, with a description of the purpose of each.

Programming element Description

DTM_GETMCCOLOR

This message retrieves the color for a specified portion of the month calendar within a date and time picker (DTP) control.

DTM_GETMCFONT

This message retrieves the font that the date and time picker (DTP) control's child month calendar control is currently using.

DTM_GETMONTHCAL

This message retrieves the handle to a date and time picker's (DTP) child month calendar control.

DTM_GETRANGE

This message retrieves the current minimum and maximum allowable system times for a date and time picker (DTP) control.

DTM_GETSYSTEMTIME

This message retrieves the currently selected time from a date and time picker (DTP) control and places it in a specified SYSTEMTIMEstructure.

DTM_SETFORMAT

This message sets the display of a date and time picker (DTP) control based on a specified format string.

DTM_SETMCCOLOR

This message sets the color for a specified portion of the month calendar within a date and time picker (DTP) control.

DTM_SETMCFONT

This message sets the font to be used by the date and time picker (DTP) control's child month calendar control.

DTM_SETRANGE

This message sets the minimum and maximum allowable system times for a date and time picker (DTP) control.

DTM_SETSYSTEMTIME

This message sets the time in a date and time picker (DTP) control.

See Also