• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

Image Control

How do you get the handle of an Image Control, and/or its screen co-ordinates?
0
dcsorillia
Asked:
dcsorillia
1 Solution
 
watyCommented:
If you use a Picture object, you will have directly the HDC.

With an image control, you could use Image1.Picture.Handle, but I have never tried it.

To know the screen coordonates, use :

Private Type POINTAPI
   x As Long
   y As Long
End Type

Private Declare Function ClientToScreen Lib "user32" (ByVal hwnd As Long, lpPoint As POINTAPI) As Long

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now