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

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.
0
zeekial
Asked:
zeekial
1 Solution
 
RheingoldCommented:
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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