Arcgisengine's Basetool class provides mouse double-click, mouse movement, mouse button press, mouse button up four kinds of mouse events, but the mouse double-click event parameters with the other three different, double-click event does not provide the mouse location information.
public virtual void OnDblClick ();
public virtual void OnMouseDown (int Button, int Shift, int X, int Y);
public virtual void OnMouseMove (int Button, int Shift, int X, int Y);
public virtual void OnMouseUp (int Button, int Shift, int X, int Y);
Today in the overload double-click event, in order to get the mouse double-click in the Mapping page location, found a lot of information, finally thought of a solution.
1, first get the position of the mouse in the screen, control.mouseposition
2. Convert absolute screen coordinates to screen coordinates relative to Pagelayoutcontrol, Axpagelayoutcontrol.pointtoclient (control.mouseposition), note that Only Axpagelayoutcontrol has this function, Pagelayoutcontrol has no conversion function. This step is already available, but if you want to get the page coordinates of the mouse in Pagelayoutcontrol, you need a third step.
3. Convert screen coordinates to cartographic page coordinates, Pagelayoutcontrol.topagepoint (Pt. X, Pt. Y
Basetool Mouse Double-click event to get the mouse position method