Solved

Want a return in a CEdit control

Posted on 2000-04-11
2
521 Views
Last Modified: 2010-04-16
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
Comment
Question by:zeekial
2 Comments
 
LVL 1

Accepted Solution

by:
Rheingold earned 100 total points
ID: 2704198
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
 
LVL 1

Expert Comment

by:mahno
ID: 2707212
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What is Python programming? 3 122
Hide vba in gp 7 106
how to use laptop or pad camera in vb.net windows application 2 86
Help Required 3 108
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This is an explanation of a simple data model to help parse a JSON feed

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question