EM_REPLACESEL

This message replaces the current selection with new text.

Parameter Description  

wParam Is not used.  
lParam Points to a null-terminated string of replacement text.