Posted By

jimfred on 07/14/09


Tagged

scroll mfc CEdit


Versions (?)

MFC CEdit append to text log and scroll to the end


 / Published in: C++
 

URL: http://www.codeguru.com/forum/showthread.php?t=318921

Append text to CEdit control and scroll to the end.

  1. int nLength = edit.GetWindowTextLength();
  2. // put the selection at the end of text
  3. edit.SetSel(nLength, nLength);
  4. // replace the selection
  5. edit.ReplaceSel(pszText);

Report this snippet  

You need to login to post a comment.