Drawing Control - Convert X,Y coordinates

H

HomerJ

I'm using the Drawing Control and want to drag & drop external objects into a
drawing.

How can I convert the X, Y points returned from the Drag_Drop event to
drawing coordinates so I can place the appropriate shape at the dropped point?
 
J

junethesecond

GetWindowRect method to Activewindow
gets window location and size,
pnLeft, pnTop, pnWidth, pnHeight.
I hope yuou could caluculate x and y.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top