|
-
Jun 10th, 2001, 10:32 AM
#1
Thread Starter
Registered User
hwnd question
I need to use the hwnd of a picture because of a hover detecting function. My problem is that the forms2 image boxes don't have any. But hasn't every object got it's own id? How can I still retrieve it? Please help me
-
Jun 10th, 2001, 10:45 AM
#2
Thread Starter
Registered User
Wait, I see, it's a window handle, so I would have to use pictureboxes instead and can put in some additional hours of work.
-
Jun 10th, 2001, 10:53 AM
#3
Image's do not have a handle; they are drawn directly on to the Form's DC.
-
Jun 10th, 2001, 03:08 PM
#4
All windows have handles; graphical devices do not, they only have a DC. If an object has a hWnd you can create a device context with the api CreateDC. The reverse is not true.
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
|