用到的命名空间是:
using DevExpress.XtraTab;
using DevExpress.XtraTab.ViewInfo;
using DevExpress.XtraTab.ViewInfo;
用到的变量:
private Rectangle rectDragBoxFromMouseDown;
private bool isDragging = false;
private Point dragOffset = Point.Empty;
private bool isDragging = false;
private Point dragOffset = Point.Empty;
创建所用到的函数:
private void CalcRectDragBox(int x, int y)
{
// Remember the point where the mouse down occurred. The DragSize indicates
// the size that the mouse can move before a drag event should be started.
Size dragSize = SystemInformation.DragSize;
// Create a rectangle using the DragSize, with the mouse position being
// at the center of the rectangle.
rectDragBoxFromMouseDown = new Rectangle(new Point((int)x - (d