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