Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6890883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:20:19+00:00 2026-05-27T06:20:19+00:00

When outputting text to CEdit, how can I alter the multiline to set it

  • 0

When outputting text to CEdit, how can I alter the multiline to set it up so that only when a “\n” will it go to the next line?

ie:(setup programmatically)

CEdit *myEdit1 = new CEdit;
myEdit1->Create( ES_MULTILINE | ES_READONLY | WS_VISIBLE | WS_BORDER, CRect(800,100,900,200), this, 2);

if I feed this “\n” I want a the it to go to the next line (and only then)

CString s;
s = "hello \n there";
myEdit1->SetWindowText(s);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:20:20+00:00Added an answer on May 27, 2026 at 6:20 am

    You may need to subclass CEdit to handle the keystrokes in that case. Otherwise the default behavior is to use Shift–Enter to jump to next line.

    Just search for CEDit subclassing and you will get lots of examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form text field that I want to allow only numbers and
I have a field that I'm outputting text into after doing an nl2br(). I've
I have an NSTextView that I'm outputting text from NSTask. Everything works as expected
When outputting images from Photoshop that are over 31 characters I get a compatibility
This zgrep command is outputting a particular field of a line containing the word
I am generating a script that is outputting information to the console. The information
Is there a way I can tell whether stderr is outputting to a file
Im currently outputting all text files held in a directory: $directory = polls/; $dir
I am having a TextView to which I am outputting lines of text in
I am getting text from an api xml document and outputting it. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.