SetRect

機能
RECT構造体の値を設定する
Declare Function SetRect Lib "user32.dll" _
(lprc As RECT, ByVal x As Long, ByVal y As Long, _
ByVal dx As Long, ByVal As dy As Long) As Long
Declare Function SetRect Lib "user32.dll" _
(lprc As RECT, ByVal x As Integer, ByVal y As Integer, _
ByVal dx As Integer, ByVal As dy As Integer) As Integer

BOOL SetRect(
LPRECT lprc,
int xLeft,
int yTop,
int xRight,
int yBottom
);
引数
lprc

(戻り値)対象のRECT構造体
x
矩形の左上隅のX座標
y
矩形の左上隅のY座標
dx
矩形の右下隅のX座標
dy
矩形の右下隅のY座標
戻り値
正常終了のとき          0以外
エラーのとき            0
備考
次のコードと同じ働きをする
With lprc
     .x = x
     .y = y
     .dx = dx
     .dy = dy
End with