Date and Time Picker Styles (Windows CE 5.0)
The following table shows the styles that are supported by Windows 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_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_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
Control Styles | Window and Message Box Styles
Send Feedback on this topic to the authors