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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CEdit

CEdit

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, I have a multiline edit box and I am trying to insert text into it, but when I insert one line it does not go to the next line, and anytime I add text afterwards it just keeps it all on one line. Any suggestions? Marco

    J T 2 Replies Last reply
    0
    • L Lost User

      Hi, I have a multiline edit box and I am trying to insert text into it, but when I insert one line it does not go to the next line, and anytime I add text afterwards it just keeps it all on one line. Any suggestions? Marco

      J Offline
      J Offline
      Jake Palmer
      wrote on last edited by
      #2

      I had this problem for a while - if I am remembering correctly the solution is to NOT have the style AutoHScroll set. That should wrap at the end of each line instead of scrolling. Good luck! ***** Jake Palmer www.duke.edu/~jp6

      1 Reply Last reply
      0
      • L Lost User

        Hi, I have a multiline edit box and I am trying to insert text into it, but when I insert one line it does not go to the next line, and anytime I add text afterwards it just keeps it all on one line. Any suggestions? Marco

        T Offline
        T Offline
        The_Server
        wrote on last edited by
        #3

        CString l_sNewText; between each line instead of '\n' add 13 and 10. like this: ========== l_sNewText= "1st line"; l_sNewText+= 13; l_sNewText+= 10; l_sNewText+= "2nd line"; l_sNewText+= 13; l_sNewText+= 10; l_sNewText+= "3rd line"; m_YourCEditControl.SetWindowText( l_sNewText); ========== this definitely will work The characters 13 and 10 works together as a new line(like '\n'). why is it like that and '\n'???? I really don't know!!! Name: STR Mission: Take Over The World (c: Tips: If you build it, he will come. More Tips: If you lick it, she will cum.

        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