clipcursor 就是这个。

解决方案 »

  1.   

    use API text view declare RECT type.
      

  2.   

    Public Type RECT
            Left As Long
            Top As Long
            Right As Long
            Bottom As Long
    End Type参数是这个类型的
      

  3.   

    好象api view里面有啊~~
      

  4.   

    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; 
      

  5.   

    传递的是上、下、左、右四个座标值。
    如:clipcursor 0,0,0,0  鼠标就不能移动了。
      

  6.   


    Public Type RECT
            Left As Long
            Top As Long
            Right As Long
            Bottom As Long
    End Type
      

  7.   

    这函数的做用是把鼠标锁定的固定的范围内。
    具体的用法:
    先定义:
    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)范围内