Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listview Drag and Drop
Message
De
25/01/2001 16:18:55
 
 
À
25/01/2001 14:55:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00468709
Message ID:
00468783
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform