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. Formatting string in Edit Box

Formatting string in Edit Box

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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.
  • G Offline
    G Offline
    Georgi Atanasov
    wrote on last edited by
    #1

    Please, help me with that stupid problem... I want to format a string and then display it in an Edit box like that: for(int i=0; i | I have tried the following formatting too: str+= "\n" and it didn't worked too:(( */ } m_wndResult.SetWindowText(str); I would be very grateful to any solutions of the problem! Thanks in advance P.S. May be the problem is in SetWindowText() ????

    R 1 Reply Last reply
    0
    • G Georgi Atanasov

      Please, help me with that stupid problem... I want to format a string and then display it in an Edit box like that: for(int i=0; i | I have tried the following formatting too: str+= "\n" and it didn't worked too:(( */ } m_wndResult.SetWindowText(str); I would be very grateful to any solutions of the problem! Thanks in advance P.S. May be the problem is in SetWindowText() ????

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      str += "\r\n" ; for a new line in an edit control CString letters("ABCD...XYZabc...xyz") ; if (letters.Find(m_szText.GetAt(i)) >= 0) if (m_szText.GetAt(i) == ' ') Roger Allen Sonork 100.10016 I have a terminal disease. Its called life!

      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