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. Editbox to Listbox

Editbox to Listbox

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 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.
  • N Offline
    N Offline
    Neil Jigger
    wrote on last edited by
    #1

    good day, is it possible to display the values/result from the editbox to the listbox? by how? m_list.???

    R 1 Reply Last reply
    0
    • N Neil Jigger

      good day, is it possible to display the values/result from the editbox to the listbox? by how? m_list.???

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      CEdit::GetWindowText() and CListBox::AddString() should help you.

      It is a crappy thing, but it's life -^ Carlo Pallini

      N 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        CEdit::GetWindowText() and CListBox::AddString() should help you.

        It is a crappy thing, but it's life -^ Carlo Pallini

        N Offline
        N Offline
        Neil Jigger
        wrote on last edited by
        #3

        what is the exact code to get the value of the editbox (variable type double) and displays in the listbox? i tried : m_list.GetText(m_list.GetCurSel(), m_edit1) but after building committed errors... please help.

        R 1 Reply Last reply
        0
        • N Neil Jigger

          what is the exact code to get the value of the editbox (variable type double) and displays in the listbox? i tried : m_list.GetText(m_list.GetCurSel(), m_edit1) but after building committed errors... please help.

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Instead of having the variable type as double, I'll recommend that you have it as a control variable, and call m_Edit.GetWindowText() and then convert it to a number with _ttol() or _ttoi(), etc.,

          It is a crappy thing, but it's life -^ Carlo Pallini

          N 2 Replies Last reply
          0
          • R Rajesh R Subramanian

            Instead of having the variable type as double, I'll recommend that you have it as a control variable, and call m_Edit.GetWindowText() and then convert it to a number with _ttol() or _ttoi(), etc.,

            It is a crappy thing, but it's life -^ Carlo Pallini

            N Offline
            N Offline
            Neil Jigger
            wrote on last edited by
            #5

            can u please give me some sample code of it? i dont know how to use tt01() or ttoi? please help...

            1 Reply Last reply
            0
            • R Rajesh R Subramanian

              Instead of having the variable type as double, I'll recommend that you have it as a control variable, and call m_Edit.GetWindowText() and then convert it to a number with _ttol() or _ttoi(), etc.,

              It is a crappy thing, but it's life -^ Carlo Pallini

              N Offline
              N Offline
              Neil Jigger
              wrote on last edited by
              #6

              thank you my code is runnig now i just change it to control and use getwindowtext. thank you very much neil

              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