Want a return in a CEdit control

I have text that I am pumping to a CEdit control.  After each line of text I insert a (\n) newline character.  Ex.(test\ntestagain\n).  The newline show up as a (|) in the control.  I have multiline, vertical scroll and want return enabled. How do I ensure that a hard return is inserted.
zeekialAsked:
Who is Participating?
 
RheingoldConnect With a Mentor Commented:
Hm

is the newline in windows controls not \r\n (or \n\r - I always mix those up ;) and not only a single \n ?
0
 
mahnoCommented:
Hi,

Try to insert "\r" in stead of "\n"

Hope this helps,
  mahno
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.