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.

Parameter Description  

wParam Is not used.  
lParam Specifies the starting position in the low-order word and the ending position in the high-order word. The position values 0 to 32,767 select the entire string.