Solved

Line break in CEdit

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn different types of Android Layout and some basics of an Android App.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

628 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