Date and time picker control stylesDate and time picker control styles*
*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_APPCANPARSEAllows 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_LONGDATEFORMATDisplays 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_RIGHTALIGNThe drop-down month calendar will be right-aligned with the control instead of left-aligned, which is the default.
DTS_SHOWNONEIt 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_SHORTDATEFORMATDisplays 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_TIMEFORMATDisplays the time. The default format string for this style is defined by LOCALE_STIMEFORMAT, which produces output like "5:31:42 PM".
DTS_UPDOWNAppears 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.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.