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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Edit Box, not able to read

Edit Box, not able to read

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
6 Posts 5 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
    tejaswi teja
    wrote on last edited by
    #1

    hi I am tejaswi . I wanted to read the contents from editboxes of a dialog window. am able to do so except for one edit box. That is apperaring on the screen as if it is read only. but not even able to copy the contents of that one manually. The caret is not coming there even if i click on the box with mouse. please tell how to read contents of it. any property is to be set or what. Thank you. Tejaswi

    L E D 3 Replies Last reply
    0
    • T tejaswi teja

      hi I am tejaswi . I wanted to read the contents from editboxes of a dialog window. am able to do so except for one edit box. That is apperaring on the screen as if it is read only. but not even able to copy the contents of that one manually. The caret is not coming there even if i click on the box with mouse. please tell how to read contents of it. any property is to be set or what. Thank you. Tejaswi

      L Offline
      L Offline
      Laffis
      wrote on last edited by
      #2

      Did you check the edit box 'read-only' setting? Did you check the DDX_Control has its entry? Did you call UpdateData(FALSE) at the wrong time?

      1 Reply Last reply
      0
      • T tejaswi teja

        hi I am tejaswi . I wanted to read the contents from editboxes of a dialog window. am able to do so except for one edit box. That is apperaring on the screen as if it is read only. but not even able to copy the contents of that one manually. The caret is not coming there even if i click on the box with mouse. please tell how to read contents of it. any property is to be set or what. Thank you. Tejaswi

        E Offline
        E Offline
        Eytukan
        wrote on last edited by
        #3

        y not u delete the control and place a new one?:~ V

        1 Reply Last reply
        0
        • T tejaswi teja

          hi I am tejaswi . I wanted to read the contents from editboxes of a dialog window. am able to do so except for one edit box. That is apperaring on the screen as if it is read only. but not even able to copy the contents of that one manually. The caret is not coming there even if i click on the box with mouse. please tell how to read contents of it. any property is to be set or what. Thank you. Tejaswi

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          What does the code look like that is attempting to read from that edit control? Is this an MFC application?


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          L 1 Reply Last reply
          0
          • D David Crow

            What does the code look like that is attempting to read from that edit control? Is this an MFC application?


            "One must learn from the bite of the fire to leave it alone." - Native American Proverb

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

            yes yes it is an MFC application using the Cwnd Class. first of all , the application that has created that edit control is a different one. not under our control. i am j ust trying to read from the window "Histograms" generated by that application( Vims Configuration Tool). I am trying to do this by using available functinos like FindWindow("Histogram"),GetTopWindow(),GetNextWindow().. like that getting all controls and then using SendMessage(WM_GETTEXT...). and now the problem is for the window that is disabled(seems to be i dont know exatly) but data is visible. i am not even getting a handle to it .some other windows that are disabled i found using a function sth like CSnd:: isEnabled .but in that list also the one i am talking about is not there. -- modified at 3:27 Friday 23rd September, 2005

            D 1 Reply Last reply
            0
            • L Lost User

              yes yes it is an MFC application using the Cwnd Class. first of all , the application that has created that edit control is a different one. not under our control. i am j ust trying to read from the window "Histograms" generated by that application( Vims Configuration Tool). I am trying to do this by using available functinos like FindWindow("Histogram"),GetTopWindow(),GetNextWindow().. like that getting all controls and then using SendMessage(WM_GETTEXT...). and now the problem is for the window that is disabled(seems to be i dont know exatly) but data is visible. i am not even getting a handle to it .some other windows that are disabled i found using a function sth like CSnd:: isEnabled .but in that list also the one i am talking about is not there. -- modified at 3:27 Friday 23rd September, 2005

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              tejaswi_teja wrote: ...now the problem is for the window that is disabled(seems to be i dont know exatly) but data is visible. Whether a window is disabled or not, you can still read text from it. If you really need to know its enabled state, use IsWindowEnabled().


              "One must learn from the bite of the fire to leave it alone." - Native American Proverb

              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