treeview drag drop

  • Thread starter Richard Daniels
  • Start date
R

Richard Daniels

Hi

I have a problem using the treeview drag and drop
functionality.

I can drag nodes from 1 treewview to another or within the
same treeview. But the problem is that the node is always
added to the ROOT node.

I am trying to use the .HitTest(x,y) to select the node
that the mouse is over but this never returns te correct
node.

The parameters of the function differ slightly in VBA to
VB (I can get this to work in VB).

Is it something to do with the x, y being defined as
stdole.OLE_XPOS_PIXELS?

If anyone can help or just point me in the right directly
that would be great

TIA

Richard
 
Top