EM_SETSEL

This message selects all characters in the current text that are within the starting and ending character positions given by the lParam parameter.

Parameters

wParam

Specifies the starting character position of the selection.

lParam

Specifies the ending character position of the selection.

Comments

The position values of 0 to -1 select the entire string.