Public Type RECT Left As Long Top As Long Right As Long Bottom As Long End Type参数是这个类型的
好象api view里面有啊~~
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle. typedef struct _RECT { // rc LONG left; LONG top; LONG right; LONG bottom; } RECT;
传递的是上、下、左、右四个座标值。 如:clipcursor 0,0,0,0 鼠标就不能移动了。
Public Type RECT Left As Long Top As Long Right As Long Bottom As Long End Type
这函数的做用是把鼠标锁定的固定的范围内。 具体的用法: 先定义: Public Type RECT Left As Long Top As Long Right As Long Bottom As Long End Type dim myRect as RECT 在具体的事件中: myRect.Left=0 myRect.Top=0 myRect.Right=100 myRect.Bottom=100clipcursor(myRect) 这样鼠标就锁定在(0,0)-(100,100)范围内
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type参数是这个类型的
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
如:clipcursor 0,0,0,0 鼠标就不能移动了。
Public Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
具体的用法:
先定义:
Public Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
dim myRect as RECT
在具体的事件中:
myRect.Left=0
myRect.Top=0
myRect.Right=100
myRect.Bottom=100clipcursor(myRect)
这样鼠标就锁定在(0,0)-(100,100)范围内