WM_CHAR (in Entry Fields) - Remarks
The entry field control window procedure responds to this message by sending
it to its owner if it has not processed the keystroke. This is the most
common means by which the input focus is switched around the various controls
in a dialog box.
Unlike other controls, the usvk field of the message WM_CHAR
takes precedence over other fields only when the Shift key is pressed.
If this message contains a valid usch field of the message WM_CHAR.
that character is entered into the text in insert or overtype mode.
The keystrokes processed by an entry field control are:
Left arrow
Move the cursor one character to the
left.
Right arrow
Move the
cursor one character to the right.
Shift+Left arrow
Extend the selection by one character to the left.
Shift+Right arrow
Extend
the selection by one character to the right.
Home
Move the cursor to the beginning of the text.
End
Move the cursor to the end of the text.
Backspace
Delete the character to the left of the cursor.
Delete
When the selection
is an insertion point, delete the character to the right of the cursor,
otherwise delete the current selection, but do not put it in the clipboard.
Shift+Del
Cut the current
selection to the clipboard.
Shift+Ins
Replace
the current selection with the text contents from the clipboard.
Ctrl+Del
Delete to the end of the field.
Ctrl+Ins
Copy the current selection to the clipboard.
If the control contains more text than can be shown, the actions defined
above that move the cursor cause the text to be scrolled. The amount of
scrolling varies from key to key, and the position of the text within the
control varies for the same cursor position.
[Back: WM_CHAR (in Entry Fields) - Syntax]
[Next: WM_CHAR (in Entry Fields) - Default Processing]