Solved

Want a return in a CEdit control

Posted on 2000-04-11
2
523 Views
Last Modified: 2010-04-16
I have text that I am pumping to a CEdit control.  After each line of text I insert a (\n) newline character.  Ex.(test\ntestagain\n).  The newline show up as a (|) in the control.  I have multiline, vertical scroll and want return enabled. How do I ensure that a hard return is inserted.
0
Comment
Question by:zeekial
[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
2 Comments
 
LVL 1

Accepted Solution

by:
Rheingold earned 100 total points
ID: 2704198
Hm

is the newline in windows controls not \r\n (or \n\r - I always mix those up ;) and not only a single \n ?
0
 
LVL 1

Expert Comment

by:mahno
ID: 2707212
Hi,

Try to insert "\r" in stead of "\n"

Hope this helps,
  mahno
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

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 …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

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