SetRect

SetRect

VB声明

Declare Function SetRect Lib "user32" Alias "SetRect" (lpRect As RECT, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long

说明

设置指定矩形的内容

返回值

Long,非零表示成功,零表示失败。会设置GetLastError

参数表

参数

类型及说明

lpRect

RECT,欲设置的矩形

X1

Long,左侧区域(Left)的值

Y1

Long,顶部区域(Top)的值

X2

Long,右侧区域(Right)的值

Y2

Long,底部区域(Bottom)的值

Top