EN_SETFOCUS This code is sent to the parent window through a WM_COMMAND message. It is sent when the edit control gains input focus. Parameters wParam is the id of the edit control. LOWORD(lParam) is the handle of the edit control. HIWORD(lParam) is the EN_SETFOCUS code.