Contents Index Topic Contents | ||
Previous Topic: Date and Time Picker Control Reference Next Topic: Date and Time Picker Control Messages |
Date and time picker control styles
The following window styles are specific to date and time picker (DTP) controls:
DTS_APPCANPARSE Allows the owner to parse user input and take necessary action. It enables users to edit within the client area of the control when they press the F2 key. The control sends DTN_USERSTRING notification messages when users are finished. DTS_LONGDATEFORMAT Displays the date in long format. The default format string for this style is defined by LOCALE_SLONGDATEFORMAT, which produces output like "Friday, April 19, 1996". DTS_RIGHTALIGN The drop-down month calendar will be right-aligned with the control instead of left-aligned, which is the default. DTS_SHOWNONE It is possible to have no date currently selected in the control. With this style, the control displays a check box that users can check once they have entered or selected a date. Until this check box is checked, the application will not be able to retrieve the date from the control because, in essence, the control has no date. This state can be set with the DTM_SETSYSTEMTIME message or verified with the DTM_GETSYSTEMTIME message. DTS_SHORTDATEFORMAT Displays the date in short format. The default format string for this style is defined by LOCALE_SSHORTDATE, which produces output like "4/19/96". DTS_TIMEFORMAT Displays the time. The default format string for this style is defined by LOCALE_STIMEFORMAT, which produces output like "5:31:42 PM". DTS_UPDOWN Appears to the right of the DTP control to modify date values. This style can be used instead of the drop-down month calendar, which is the default style.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.