Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CEdit multiline

CEdit multiline

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark Donkers
    wrote on last edited by
    #1

    Ok. I'm almost embarrassed to ask this one, but here goes... I have a dialog box with a CEdit control on it. I'm using it as a logging window, but I can't get it to multiline my text. I'm using a CString member variable to contain the text that is written to it, but when I insert a '\n' or '\r' the CEdit control displays it as a control character inside of moving to the next line. What properties need to be set? The ones that I have checked are: - multiline - horizontal scroll - vertical scroll Am I missing something? Thanks in advance. Mark Mark Donkers A witty saying proves nothing. -- Voltaire

    J 1 Reply Last reply
    0
    • M Mark Donkers

      Ok. I'm almost embarrassed to ask this one, but here goes... I have a dialog box with a CEdit control on it. I'm using it as a logging window, but I can't get it to multiline my text. I'm using a CString member variable to contain the text that is written to it, but when I insert a '\n' or '\r' the CEdit control displays it as a control character inside of moving to the next line. What properties need to be set? The ones that I have checked are: - multiline - horizontal scroll - vertical scroll Am I missing something? Thanks in advance. Mark Mark Donkers A witty saying proves nothing. -- Voltaire

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      use \r\n to pass a line Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      M 1 Reply Last reply
      0
      • J jmkhael

        use \r\n to pass a line Papa while (TRUE) Papa.WillLove ( Bebe ) ;

        M Offline
        M Offline
        Mark Donkers
        wrote on last edited by
        #3

        Perfect. Thanks Papa. MD Mark Donkers A witty saying proves nothing. -- Voltaire

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups