PC Review


Reply
Thread Tools Rate Thread

Cannot get accurate results from Hittest

 
 
Duncan
Guest
Posts: n/a
 
      9th Sep 2008
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using VisualTreeHelper.HitTest Gotch@ Microsoft C# .NET 0 11th Jun 2008 12:27 PM
Hittest on listbox? Martin Microsoft VB .NET 2 12th Mar 2006 11:24 AM
getting accurate results when sorting =?Utf-8?B?TGluZVJpY2hlcg==?= Microsoft Excel Worksheet Functions 3 31st Jan 2005 12:40 AM
Problem with HitTest in DataGrid Maria Anthonsen Microsoft VB .NET 3 15th Dec 2004 12:27 PM
Windows search results not accurate =?Utf-8?B?QW5rdXIgS2hldGVycGFs?= Windows XP General 1 20th Apr 2004 08:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:11 PM.