Results 1 to 4 of 4

Thread: hwnd question

  1. #1

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    Exclamation 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

  2. #2

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252
    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.

  3. #3
    Megatron
    Guest
    Image's do not have a handle; they are drawn directly on to the Form's DC.

  4. #4
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width