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 get handle of edit control

How can i get handle of edit control

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

    Hi, Im having a web application.It has a edit control.Using a service, i will continuously watch a file for some content, then i will post that content into the edit control. How can i get the handle of edit control in the web application? Is it possible? Thanks,

    C 1 Reply Last reply
    0
    • P Pryabu

      Hi, Im having a web application.It has a edit control.Using a service, i will continuously watch a file for some content, then i will post that content into the edit control. How can i get the handle of edit control in the web application? Is it possible? Thanks,

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      Controls in a webpage do not have window handle. A webpage can have java script functions to update the controls in it. See javaScript calls from C++. http://www.codeguru.com/cpp/i-n/ieprogram/article.php/c4399 Also, if you want to write some files to system from the webpage, you need to host an activex control with required functionality in webpage.

      P 1 Reply Last reply
      0
      • C Cool_Dev

        Controls in a webpage do not have window handle. A webpage can have java script functions to update the controls in it. See javaScript calls from C++. http://www.codeguru.com/cpp/i-n/ieprogram/article.php/c4399 Also, if you want to write some files to system from the webpage, you need to host an activex control with required functionality in webpage.

        P Offline
        P Offline
        Pryabu
        wrote on last edited by
        #3

        sorry not in a web page... in oracle forms...

        C 1 Reply Last reply
        0
        • P Pryabu

          sorry not in a web page... in oracle forms...

          C Offline
          C Offline
          Cool_Dev
          wrote on last edited by
          #4

          examine your oracle forms with Spy++ that comes with 'Visual Studio Tools' to check whether they have any window handle or not :(

          P 1 Reply Last reply
          0
          • C Cool_Dev

            examine your oracle forms with Spy++ that comes with 'Visual Studio Tools' to check whether they have any window handle or not :(

            P Offline
            P Offline
            Pryabu
            wrote on last edited by
            #5

            yes.it is showing window handle. If i open the form in another machine,Will the window handle get change?

            C 1 Reply Last reply
            0
            • P Pryabu

              yes.it is showing window handle. If i open the form in another machine,Will the window handle get change?

              C Offline
              C Offline
              Cool_Dev
              wrote on last edited by
              #6

              Karthika85 wrote:

              If i open the form in another machine,Will the window handle get change?

              ;P it will get changed. Handles are kernal tokens, and its OS who assigns handles in response to our API calls . Use Spy++ to find out the ClassName/Caption of the window. You may try with FindWindow Function to get top level parent window handle, then FindWindowEx Function to get its child windows.

              P 1 Reply Last reply
              0
              • C Cool_Dev

                Karthika85 wrote:

                If i open the form in another machine,Will the window handle get change?

                ;P it will get changed. Handles are kernal tokens, and its OS who assigns handles in response to our API calls . Use Spy++ to find out the ClassName/Caption of the window. You may try with FindWindow Function to get top level parent window handle, then FindWindowEx Function to get its child windows.

                P Offline
                P Offline
                Pryabu
                wrote on last edited by
                #7

                ok thanks

                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