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. Problem with CEdit

Problem with CEdit

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
4 Posts 4 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.
  • S Offline
    S Offline
    Static x
    wrote on last edited by
    #1

    Hi everybody, i have a problem with CEdit, for example CString s1="Hello World"; CString s2="This is a Test"; //and we have CEdit variable m_edit m_edit=s1+"\n"+s2; as you see i want the result to be Hello World This is a Test but CEdit shows : Hello World This is a Test though CEdit is marked in properties as "Multiline" Can anybody help?? Regards m0n0

    T M 2 Replies Last reply
    0
    • S Static x

      Hi everybody, i have a problem with CEdit, for example CString s1="Hello World"; CString s2="This is a Test"; //and we have CEdit variable m_edit m_edit=s1+"\n"+s2; as you see i want the result to be Hello World This is a Test but CEdit shows : Hello World This is a Test though CEdit is marked in properties as "Multiline" Can anybody help?? Regards m0n0

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      replace \n with \r\n it will work... even today (April, 1st) :-D ps: is your EditBox declared as MultiLine ?


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      L 1 Reply Last reply
      0
      • T toxcct

        replace \n with \r\n it will work... even today (April, 1st) :-D ps: is your EditBox declared as MultiLine ?


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Thanks it works m0n0

        1 Reply Last reply
        0
        • S Static x

          Hi everybody, i have a problem with CEdit, for example CString s1="Hello World"; CString s2="This is a Test"; //and we have CEdit variable m_edit m_edit=s1+"\n"+s2; as you see i want the result to be Hello World This is a Test but CEdit shows : Hello World This is a Test though CEdit is marked in properties as "Multiline" Can anybody help?? Regards m0n0

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          For future reference, we have a FAQ: 4.12 How do I create a newline in a multi-line edit control?[^] --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

          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