Share via


Date and Time Picker Styles (Compact 2013)

3/28/2014

The following table shows the styles that are supported by Windows Embedded Compact.

Date and time picker style

Description

DTS_APPCANPARSE

Enables the owner to parse user input. When a date time picker (DTP) control has this style, a user can make changes within the client area of the control by pressing the F2 key. The control sends a DTN_USERSTRING notification message when the user is finished editing.

DTS_LONGDATEFORMAT

Displays the date in long format. The default format string for this style is defined by LOCALE_SLONGDATEFORMAT, which produces output like "Sunday, April 19, 1998."

DTS_NONEBUTTON

Specifies that the None button should be displayed instead of a check box in the Date Time Picker control. To display the None button, you must also specify the DTS_SHOWNONE style.

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/98."

DTS_SHORTDATECENTURYFORMAT

Similar to the DTS_SHORTDATEFORMAT style, except the year is a four-digit field. The default format string for this style is based on LOCALE_SSHORTDATE. The output looks like: "4/19/1996".

DTS_SHOWNONE

Enables the control to accept "no date" as a valid selection state. This state can be set with the DTM_SETSYSTEMTIME message or verified with the DTM_GETSYSTEMTIME message.

DTS_SHOWSECONDS

When used in conjunction with DTS_TIMEFORMAT, the time is displayed with the number of seconds.

DTS_TIMEFORMAT

Displays the time. The default format string for this style is defined by LOCALE_STIMEFORMAT, which produces output like "5:31 PM." An up-down control is placed to the right of the DTP control to modify time values.

If you want to display the number of seconds, you need to specify the DTS_SHOWSECONDS style.

DTS_UPDOWN

Places an up-down control to the right of a DTP control to modify time values. This style can be used instead of the drop-down month calendar, which is the default style.

DTS_UPDOWNARROWSCHANGEVALUES

Allows the up and down arrow keys to be used in a time picker control that is hosted in a dialog box. If you do not specify this style and the time picker control is hosted in a dialog box, pressing the up and down arrow keys will move focus to a different control.

See Also

Reference

Control Styles
Window and Message Box Styles
Date and Time Picker Controls Reference