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. Obtain a handle to a label in a container

Obtain a handle to a label in a container

Scheduled Pinned Locked Moved C / C++ / MFC
docker
6 Posts 3 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
    Abhishek Karnik
    wrote on last edited by
    #1

    Hey there, I have an application which has a "ThunderRT6UserControlDC". There are various control within this container such as 1. A drop down box 2. Label box 3. Gifs 4. a List View For some reason 1 and 2 are not visible as having handles when viewed from Spy++. I need to get the handle to the Label box (2) to retrieve its text. I'm trying to access this from a different program so I have to use handles and cannot use properties withing my application. Any suggestions!! Abhishek

    D J 2 Replies Last reply
    0
    • A Abhishek Karnik

      Hey there, I have an application which has a "ThunderRT6UserControlDC". There are various control within this container such as 1. A drop down box 2. Label box 3. Gifs 4. a List View For some reason 1 and 2 are not visible as having handles when viewed from Spy++. I need to get the handle to the Label box (2) to retrieve its text. I'm trying to access this from a different program so I have to use handles and cannot use properties withing my application. Any suggestions!! Abhishek

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

      Abhishek Karnik wrote: For some reason 1 and 2 are not visible as having handles when viewed from Spy++. Are they obscured by some other control like a groupbox?


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      A 1 Reply Last reply
      0
      • A Abhishek Karnik

        Hey there, I have an application which has a "ThunderRT6UserControlDC". There are various control within this container such as 1. A drop down box 2. Label box 3. Gifs 4. a List View For some reason 1 and 2 are not visible as having handles when viewed from Spy++. I need to get the handle to the Label box (2) to retrieve its text. I'm trying to access this from a different program so I have to use handles and cannot use properties withing my application. Any suggestions!! Abhishek

        J Offline
        J Offline
        Jose Lamas Rios
        wrote on last edited by
        #3

        Abhishek Karnik wrote: Hey there, I have an application which has a "ThunderRT6UserControlDC". There are various control within this container such as 1. A drop down box 2. Label box 3. Gifs 4. a List View For some reason 1 and 2 are not visible as having handles when viewed from Spy++. One possible reason for those controls not appearing in Spy++ is that they might not be separate windows. The drawing and behavior of those controls might be implemented directly inside ThunderRT6UserControlDC. Is that a VB app? I seem to remember reading somewhere that VB implement some basic controls entirely by its own without creating actual Win32 windows for them. That would explain what you are seeing (and what not) in Spy++... -- jlr http://jlamas.blogspot.com/[^]

        A 1 Reply Last reply
        0
        • D David Crow

          Abhishek Karnik wrote: For some reason 1 and 2 are not visible as having handles when viewed from Spy++. Are they obscured by some other control like a groupbox?


          "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

          A Offline
          A Offline
          Abhishek Karnik
          wrote on last edited by
          #4

          Hey David, I'm not sure ..... the ThunderRT6UserControlDC is a child of ThunderRT6PictureBoxDC which contains a number of ThunderRT6UserControlDC's. However I don't think its obscured. If it were it would have shown up in Spy++ ( is assume). regards Abhishek

          1 Reply Last reply
          0
          • J Jose Lamas Rios

            Abhishek Karnik wrote: Hey there, I have an application which has a "ThunderRT6UserControlDC". There are various control within this container such as 1. A drop down box 2. Label box 3. Gifs 4. a List View For some reason 1 and 2 are not visible as having handles when viewed from Spy++. One possible reason for those controls not appearing in Spy++ is that they might not be separate windows. The drawing and behavior of those controls might be implemented directly inside ThunderRT6UserControlDC. Is that a VB app? I seem to remember reading somewhere that VB implement some basic controls entirely by its own without creating actual Win32 windows for them. That would explain what you are seeing (and what not) in Spy++... -- jlr http://jlamas.blogspot.com/[^]

            A Offline
            A Offline
            Abhishek Karnik
            wrote on last edited by
            #5

            hey Jose, If they are implemented directly inside ThunderRT6UserControlDC, do you think there is some way of extracting the text.....using a Gettext or something.......because I am not sure if that would work since the there seem to be subcomponents with different structures (like the drop down compared to a text box) Jose Lamas Rios wrote: Is that a VB app? Yes the application that I am targetting is a VB application...I'm sriting my code in VC.

            J 1 Reply Last reply
            0
            • A Abhishek Karnik

              hey Jose, If they are implemented directly inside ThunderRT6UserControlDC, do you think there is some way of extracting the text.....using a Gettext or something.......because I am not sure if that would work since the there seem to be subcomponents with different structures (like the drop down compared to a text box) Jose Lamas Rios wrote: Is that a VB app? Yes the application that I am targetting is a VB application...I'm sriting my code in VC.

              J Offline
              J Offline
              Jose Lamas Rios
              wrote on last edited by
              #6

              Abhishek Karnik wrote: If they are implemented directly inside ThunderRT6UserControlDC, do you think there is some way of extracting the text.....using a Gettext or something No, if that is the case, I don't think there is a way to get the text. But maybe you can find something googling for ThunderRT6UserControlDC or asking in a VB forum... -- jlr http://jlamas.blogspot.com/[^]

              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