Solved

Line break in CEdit

Posted on 2010-08-30
1
714 Views
Last Modified: 2012-05-10
Hello,

I want to show inside a multiline CEdit some information. For this I create a CString and
make a format. Inside the format I add \n for linebreak, but the CEdit ignore it. What I have to do to add a linebreak to the multiline CEdit?
Sample: mystring.Format(_T("%s \n %s"),_T("part1"),_T("part2"));

Thanks,
Ocrana
0
Comment
Question by:Ocrana
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 33559617
Try using CR/LF which is used as a line separator on Windows, not only LF, i.e.

mystring.Format(_T("%s \r\n %s"),_T("part1"),_T("part2"));
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now