MFC CEdit append to text log and scroll to the end


/ Published in: C++
Save to your folder(s)

Append text to CEdit control and scroll to the end.


Copy this code and paste it in your HTML
  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);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.