>When I have a form that contains an ActiveX control, if the mouse is moved over that control, the nXCoord parameter of the MouseMove event contains the horizontal position of the mouse relative to the screen instead of the form. Otherwise the position is relative to the form like it is suppose to. Is there a way around this problem ?
>
>Thanx
No solution. You just must to know it and calculate it. Thanks for who gaves me the solution in the past. For sample i have this code as starter in the dragover event of an treeview control that is within a container:
LPARAMETERS oSource, m.x, m.Y
posx = 15*(m.X - this.Left - this.parent.left)
posy = 15*(m.Y - this.Top - this.parent.top)
Saludos,
A.G.P.
---------