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. how can i display a value in edit control

how can i display a value in edit control

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

    i am having a problem with displaying a text in editbox in a edit box in a dilog basaed applicatiopn in vc++ ihtesham

    R T V 3 Replies Last reply
    0
    • A Amirzeb

      i am having a problem with displaying a text in editbox in a edit box in a dilog basaed applicatiopn in vc++ ihtesham

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

      show how u r doing

      1 Reply Last reply
      0
      • A Amirzeb

        i am having a problem with displaying a text in editbox in a edit box in a dilog basaed applicatiopn in vc++ ihtesham

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

        There must be a IDENTIFIER for you edit Box like IDR_EDIT1. In WIN32 based API just call this API for setting text in Edit Box SetDlgItemText(Dialog Handle, Identifier as I told you above, Text to display); IN MFC Just add the CString variable for Edit box. Way to add variable -> Right Click on Edit Box (in resource view) ->class wizard->member variable Add a m_str variable from add variable Button. Now in function where you want to put data into the Edit Box //first Fill the Variable m_str="amirzeb"; //this function call will put value in dialog **UpdateData(FALSE);**


        "I Think this Will Help"  Alok Gupta
         visit me at http://www.thisisalok.tk

        1 Reply Last reply
        0
        • A Amirzeb

          i am having a problem with displaying a text in editbox in a edit box in a dilog basaed applicatiopn in vc++ ihtesham

          V Offline
          V Offline
          virtualkirankumar
          wrote on last edited by
          #4

          if ur application is dialog based then u may used GetDlgItem(ID_UR_EDIT)->SetWindowText("what u want to diaplay"); here this function reduces number of varialble declaration and UpdateData() is need not call to refresh ur app. urs kiran.s kiran kumar.s

          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