LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Cannot get accurate results from Hittest

Trying to write a routine that drags and drops from a listbox to a
treeview. However the hittest scaling is out.

First realised that X,Y values were in twips and hittest worked in
pixels but the scale is still out. My pixels-twips convertion is using
GetDeviceCaps reading the pixels per inch value but that is wrong.
Then wrote a routine using GetDeviceCaps referring to screen width and
screen resolution and doing the calculation itself but the result is
also wrong (screen width reports the wrong size of screen).

Does anyone have any suggestions? Using Excel 2003 and vista rolled-
back to XP.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How accurate is Solver? andysween Excel Discussion (Misc queries) 0 April 9th 09 12:26 AM
Return ListItem via HitTest Desi Excel Programming 0 July 22nd 08 12:09 AM
How accurate is SOLVER? Augabog Excel Worksheet Functions 1 April 2nd 07 09:57 AM
getting accurate results when sorting LineRicher Excel Worksheet Functions 3 January 31st 05 12:40 AM
HitTest function does not return node as documented Balajee S Excel Programming 5 November 25th 04 12:04 AM


All times are GMT +1. The time now is 01:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"