ブラシで矩形領域を塗りつぶす
Declare Function FillRect Lib "user32.dll" _
(ByVal hdc As Long, lpRect As RECT, ByVal hbr As Long) As Long
Declare Function FillRect Lib "user32.dll" _
(ByVal hdc As Integer, lpRect As RECT, ByVal hbr As Integer) As Integer
int FillRect(
HDC hDC,
CONST RECT *lprc,
HBRUSH hbr
);
引数
hDC
デバイスコンテキストのハンドルlpRect
塗りつぶす矩形を指定するRECT構造体hbr
ブラシのハンドル戻り値
現在選択されているブラシを使うときは0
正常終了のとき 0以外
エラーのとき 0