FillRect

此頁(yè)沒有內(nèi)容條目
內(nèi)容

FillRect

VB聲明

Declare Function FillRect Lib "user32" Alias "FillRect" (ByVal hdc As Long, lpRect As RECT, ByVal hBrush As Long) As Long

說明

用指定的刷子填充一個(gè)矩形

返回值

Long,非零表示成功,零表示失敗。會(huì)設(shè)置GetLastError

參數(shù)表

參數(shù)

類型及說明

hdc

Long,設(shè)備場(chǎng)景的句柄

lpRect

RECT,對(duì)填充區(qū)域進(jìn)行描述的一個(gè)矩形,采用邏輯坐標(biāo)

hBrush

Long,欲使用的刷子的句柄

注解

矩形的右邊和底邊不會(huì)描繪

Top