protected OnWindowlessDoubleClick ( |
||
sender | ||
e | ||
return | void |
protected override void OnDoubleClick(EventArgs e) { Point p = PointToClient(new Point(MousePosition.X, MousePosition.Y)); Control parent = this; WindowlessMouseEventArgs we = new WindowlessMouseEventArgs(MouseButtons.Left, 1, p.X, p.Y, 0, false); while (parent != null) { WindowlessControlHost parentHost = parent as WindowlessControlHost; if (parentHost != null) { parentHost.OnWindowlessDoubleClick(this, we); } we = new WindowlessMouseEventArgs(MouseButtons.Left, 1, p.X + Left, p.Y + Top, 0, we.Handled); parent = parent.Parent; } base.OnDoubleClick(e); }