Information générale
Catégorie:
Gestionnaire d'écran & Écrans
In case anybody cares, I found that the x/y coordinates to HitTest() have to be scaled. I went through the samples and found that they were doing:
this.Hittest(x/96*1440,y/96*1440)
Now, if anybody knows the significance of 96 & 1440, I'd love to hear about it.
PS to Microsoft: a little more commenting in the samples would be nice!
>Has anybody implemented OLE Drag&Drop with the MS TreeView6? I cannot get the HitTest() code to work correctly. I'd love to see a tiny sample if anyone has gotten it to work. The VB code works, but I'm struggling in VFP.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement