View Single Post
  #1   Report Post  
Balajee S
 
Posts: n/a
Default HitTest function does not return node as documented

I am trying to use a TreeView control within an Excel form(VBA). With the
TreeView control, I am able to display data from an XML document as source.
However when I try to implement drag and drop functionality, HitTest function
was used to get the a specific node using X and Y position (As documented in
MSDN). However the HitTest() function always returns the first Parent Node
within the TreeView control, no matter what node was clicked within the
TreeView Control.

Does anyone faced this problem. Am not sure if its a problem with the
Control itself when used with VBA. Please suggest me an approach to overcome
this.