EM_SETSEL Sets a selected area in the edit control. Parameters wParam is not used. LOWORD(lParam) is the 0-based starting point of the selection and HIWORD(lParam) is the 0- based ending point of the selection. If lParam is -1L, then the entire text will be selected.