Solved

Line break in CEdit

Posted on 2010-08-30
1
722 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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

This is an explanation of a simple data model to help parse a JSON feed
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

734 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