MultiLine Edit Control

Posted on 2005-05-10
Last Modified: 2013-11-13
In Multiline Edit control ..when i set the text which contains
'\n' character using the SetWindowText function ,it's not
moved onto the next line ,but instead it displays a thick line for
the '\n' and all the characters are displayed in the same line.

How can i display the text onto the next line ..if the string
contains a '\n' character in Multiline Editcontrol.
Question by:kallzz
    LVL 48

    Accepted Solution

    Use \r\n:


    Author Comment

    You mean to say that ..i  will have to loop through the characters in the string
    and insert \r  whenever i encounter an '\n' is encountered

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    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.
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    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 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…

    760 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

    10 Experts available now in Live!

    Get 1:1 Help Now