Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting relative to actual screen co-ords

Status
Not open for further replies.

yumbelie

Programmer
Dec 31, 2002
96
GB
Hi,
I'm wondering, what values do you multiply by to convert an actual resolution value (in this case mouse pointer position co-ords 1024x768) to the windows, resolution independant screen co-ordinate system?

Thanks
 
Windows uses a number of resolution independant coordinates systems. Which one are you after?
 
Erm, the one visual basic uses to define window height/width (e.g. Me.ScaleHeight etc) I think. That sound about right? my knowledge of this area is a little hazy ;)
 
Ah - starting with pixels you want twips.

Multiplier is Screen.TwipsPerPixelX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top