Solved

Line break in CEdit

Posted on 2010-08-30
1
713 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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.

747 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

14 Experts available now in Live!

Get 1:1 Help Now