Input Category | Description |
---|---|
Arrow Keys | The control accepts arrow keys to navigate the fields in the control and change values. The user can press the or keys to move through the control If the user attempts to move past the last field in a given direction, the keyboard focus 'wraps around' to the field on the opposite side of the control. The and keys change values in the current field incrementally. |
End and Home | The control accepts the VK_END and VK_HOME virtual keys to change the value within the current field to its upper and lower limits, respectively. |
Function Keys | The key activates edit mode. The key causes the control to display a drop-down month calendar control (pressing does this as well). |
Numbers | The control accepts numeric input in two-character segments. If the value entered by the user is invalid (like setting the month to 14), the control rejects it and resets the display to the previous value. |
Plus and Minus | The control accepts the VK_ADD and VK_SUBTRACT virtual keys from the numeric keypad to increment and decrement the value in the current field. |
DTS_LONGDATEFORMAT | The display will look like: 'Friday, April 19, 1996'. |
DTS_SHORTDATEFORMAT | The display will look like: '4/19/96'. |
DTS_SHORTDATECENTURYFORMAT | Version 5.80. The display will look like: '4/19/1996'. |
DTS_TIMEFORMAT | The display will look like: '5:31:42 PM'. |
Element | Description |
---|---|
'd' | The one- or two-digit day. |
'dd' | The two-digit day. Single-digit day values are preceded by a zero. |
'ddd' | The three-character weekday abbreviation. |
'dddd' | The full weekday name. |
'h' | The one- or two-digit hour in 12-hour format. |
'hh' | The two-digit hour in 12-hour format. Single-digit values are preceded by a zero. |
'H' | The one- or two-digit hour in 24-hour format. |
'HH' | The two-digit hour in 24-hour format. Single-digit values are preceded by a zero. |
'm' | The one- or two-digit minute. |
'mm' | The two-digit minute. Single-digit values are preceded by a zero. |
'M' | The one- or two-digit month number. |
'MM' | The two-digit month number. Single-digit values are preceded by a zero. |
'MMM' | The three-character month abbreviation. |
'MMMM' | The full month name. |
't' | The one-letter AM/PM abbreviation (that is, AM is displayed as 'A'). |
'tt' | The two-letter AM/PM abbreviation (that is, AM is displayed as 'AM'). |
'yy' | The last two digits of the year (that is, 1996 would be displayed as '96'). |
'yyyy' | The full year (that is, 1996 would be displayed as '1996'). |
Notification code | Description |
---|---|
DTN_CLOSEUP | Indicates that the drop-down month calendar is about to be removed. |
DTN_DATETIMECHANGE | Signals a change within the DTP control. |
DTN_DROPDOWN | Indicates that the drop-down month calendar is about to be displayed. |
DTN_FORMAT | Requests text to display in a portion of the format string described as a callback field. |
DTN_FORMATQUERY | Requests information about the maximum allowable size of the text to be displayed in a callback field. |
DTN_USERSTRING | Signals the end of a user's edit operation within the control. This notification is sent only by DTP controls that use the DTS_APPCANPARSE style. |
DTN_WMKEYDOWN | Signals that the user has pressed a key in a callback field of the DTP control. |