Click to See Complete Forum and Search --> : hwnd question
Olly
Jun 10th, 2001, 10:32 AM
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 :(
Olly
Jun 10th, 2001, 10:45 AM
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. :mad:
Megatron
Jun 10th, 2001, 10:53 AM
Image's do not have a handle; they are drawn directly on to the Form's DC.
jim mcnamara
Jun 10th, 2001, 03:08 PM
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.
:)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.