• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 858
  • Last Modified:

Append text to CEditView/CEdit MFC 2.5

I can append text to a CEditView member (using SetSel() ReplaceSel()) but how do I append a newline character(s) first so that each new text message appears on its own line?
0
robm
Asked:
robm
1 Solution
 
MFCGuyCommented:
Insert the text "\r\n" before the text you want, e.g.

Set Sel(1,5);
ReplaceSel("\r\nNewText");

Bye,
MFCGuy
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now