Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Line break in CEdit

Posted on 2010-08-30
1
Medium Priority
?
726 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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

916 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