You can use this macro, or send the DTM_GETSYSTEMTIME message explicitly. Gets the currently selected time from a date and time picker (DTP) control and places it in a specified SYSTEMTIME structure. You can use this macro, or send the DTM_GETRANGE message explicitly. Gets the current minimum and maximum allowable system times for a date and time picker (DTP) control. Use this macro or send the DTM_GETMCSTYLE message explicitly. Gets the style of a specified DTP control. You can use this macro or send the DTM_GETMCFONT message explicitly. Gets the font that the date and time picker (DTP) control's child month calendar control is currently using. You can use this macro or send the DTM_GETMCCOLOR message explicitly. 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_GETMONTHCAL message explicitly. Gets the handle to a date and time picker's (DTP) child month calendar control. Use this macro or send the DTM_GETIDEALSIZE message explicitly. Gets the size needed to display the control without clipping.
Gets information for a specified date and time picker (DTP) control. Use this macro or send the DTM_CLOSEMONTHCAL message explicitly.
This section provides information and sample code for implementing date and time picker controls.Ĭloses the date and time picker (DTP) control. Overviews TopicĪ date and time picker (DTP) control provides a simple and intuitive interface through which to exchange date and time information with a user. This section contains information about the API elements used with date and time picker controls.