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 styles that are supported by Windows Embedded CE.

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_USERSTRINGnotification 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 Nonebutton should be displayed instead of a check box in the Date Time Picker control. To display the Nonebutton, 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_TIMEFORMAT

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

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.

See Also