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 |