Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listview Drag and Drop
Message
From
25/01/2001 16:18:55
 
 
To
25/01/2001 14:55:00
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00468709
Message ID:
00468783
Views:
17
Funny, I got the same problem with the Treeview!

Turns out both the TreeView and the ListView work with Twips, while Fox (and I guess any other languages) uses pixels. My guess is that the VB guys needed something more complicated than just using pixels, so there are 1440 Twips per inch. Of course, you can't directly translate Twips to pixels with a simple calculation: you have to figure out how the screen resolution first.

Solution:
http://msdn.microsoft.com/library/default.asp?URL=/library/periodic/period97/ft0697.htm

In that article, look for the HitTest method. There you will find your answer with a few API calls. I haven't tested it yet, I just found it!

Thanks to Doug Hennig for the article! :)



>Hi All,
>
>I've been trying to work with Microsoft Listview control using some of the drag and drop features. I'm able to begin the drag but can't seem to get the HITTEST(x,y) method to return anything other than the upper left coordinate of the list view. Am I missing something? Can you get there from here?
>
>(VPF6/SP4 on Win2000)
>
>Thanks for any pointers,
>
>Erik
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform