EM_REPLACESEL This message is sent to an edit control in order to replace the selected text with another string. Parameters wParam is not used. lParam is a far pointer to a NULL-terminated string. This string will replace the contents of the selected area.