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. Sending text to an edit box

Sending text to an edit box

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
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.
  • T Offline
    T Offline
    Tryhard
    wrote on last edited by
    #1

    Hi all, I have modified a program I am writing to use an edit box instead of a list box for displaying text. I was using insertstring to send text to the top line of the listbox: m_theconv.InsertString(0, replyprefix + m_Reply); What would be the best way to acheive this in an edit box???? (Yes - I am a newbie to VC++) Any help greatly appreciated. Thanks Tryhard :-)

    R C 2 Replies Last reply
    0
    • T Tryhard

      Hi all, I have modified a program I am writing to use an edit box instead of a list box for displaying text. I was using insertstring to send text to the top line of the listbox: m_theconv.InsertString(0, replyprefix + m_Reply); What would be the best way to acheive this in an edit box???? (Yes - I am a newbie to VC++) Any help greatly appreciated. Thanks Tryhard :-)

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      SetDlgItemText (IDC_MY_EDIT, replyprefix + m_Reply);

      /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

      1 Reply Last reply
      0
      • T Tryhard

        Hi all, I have modified a program I am writing to use an edit box instead of a list box for displaying text. I was using insertstring to send text to the top line of the listbox: m_theconv.InsertString(0, replyprefix + m_Reply); What would be the best way to acheive this in an edit box???? (Yes - I am a newbie to VC++) Any help greatly appreciated. Thanks Tryhard :-)

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Assuming it's still called m_theconv, you can m_theconv.SetWindowText(replyprefix + m_Reply); Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

        Sonork ID 100.10002:MeanManOz

        I live in Bob's HungOut now

        N 1 Reply Last reply
        0
        • C Christian Graus

          Assuming it's still called m_theconv, you can m_theconv.SetWindowText(replyprefix + m_Reply); Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

          Sonork ID 100.10002:MeanManOz

          I live in Bob's HungOut now

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          maybe he might want to so this :- replyprefix + "\r\n" + m_Reply Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

          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