|
-
Dec 11th, 2005, 06:57 PM
#1
Thread Starter
Hyperactive Member
Get Hwnd of CheckBox in PictureBox
How can I get the hwnd of a check box in a picture box of a program? I tried:
pichwnd=FindWindowEx(MyHwnd, ByVal 0&, "ThunderRT6PictureBoxDC", vbNullString)
checkboxhwnd=FindWindowEx(pichwnd, ByVal 0&, "ThunderRT6CheckBox", vbNullString)
MsgBox checkboxhwnd
pichwnd returned a value but checkboxhwnd returned 0
Last edited by abazabam; Dec 11th, 2005 at 07:58 PM.
-
Dec 11th, 2005, 07:15 PM
#2
Re: Get Hwnd of CheckBox in PictureBox
Is it your program (app) that your trying to get the CB Hwnd?
-
Dec 11th, 2005, 07:38 PM
#3
Thread Starter
Hyperactive Member
Re: Get Hwnd of CheckBox in PictureBox
No. It's another program made in VB.
-
Dec 11th, 2005, 07:49 PM
#4
Re: Get Hwnd of CheckBox in PictureBox
Only obvious thing is that you've spelt the class names wrong.
Have a link to the app?
-
Dec 11th, 2005, 07:54 PM
#5
Thread Starter
Hyperactive Member
Re: Get Hwnd of CheckBox in PictureBox
It would probably be faster if you just made it in VB yourself and tested it.
-
Dec 11th, 2005, 08:28 PM
#6
Thread Starter
Hyperactive Member
Re: Get Hwnd of CheckBox in PictureBox
It uses DeleteDC on the picture box
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|