Hi,
This behaviour is normal. I tried it, and got the same thing. I also tried
some windows coordinate transformations (MapWindow..., GetWindowOrg, and
some others), with Hwnd combinations of the AX control, the desktop and the
VI. They all add an offset, but do not scale the coordinates.
Also, I viewed some examples. The examples don't seem to do anything
special. They just read the event, and feed the coordinates directly into
the HitTest.
Fortunatelly, I don't need it (I use the Selected Item property). Is there
any reason you can't use this property?
Regards,
Wiebe.
"INTP56"
wrote in message
news:506500000008000000767C0000-1042324653000@exchange.ni.com...
> I've been looking through the forums and haven't seen my problem. I'm
> using the
MSTreeView 6.0 (I've put two nodes in there). I can detect
> events (in this case, I'm most interested MouseMove) and I can display
> the X,Y values from elements 2 and 3 of the ParamData Array.
>
> I have HotTracking turned on. After mousing around for a while, I've
> determined that Node 1 gets highlighted when 0 <= X <= 69 and 1 <= Y
> <= 13. Node 2 gets highlighted when 0 <= X <= 69 and 14 <= Y <= 27.
>
> The problem comes when I feed those values into HitTest. It returns
> Node 1 when X any and 0<= Y <= 202. It returns Node 2 when X any and
> 203 <= Y <= 363 (The Max Y value). Is there some conversion needed? I
> don't understand why the values I get back from MouseMove would be
> different than the values I give to HitTest.
>
> Thanks in advance.
>
> Bob Martin