currently I am using EM_SETSEL/EM_REPLACESEL to add new lines to a rich edit control, the problem is when the text is off the bottom of the scream the control dosen't scroll even though it has the WS_VSCROLL and ES_AUTOVSCROLL styles. What is the corect way to add a new line and make the control scroll if needed?