FillRgn

Syntax

BOOL FillRgn(hDC,hRgn,hBrush)

This function fills the region specified by the hRgn parameter with the brush specified by the hBrush parameter.

Parameter Type/Description  

hDC HDC Identifies the device context.  
hRgn HRGN Identifies the region to be filled. The coordinates for the given region are specified in device units.  
hBrush HBRUSH Identifies the brush to be used to fill the region.  

Return Value

The return value specifies the outcome of the function. It is nonzero if the function is successful. Otherwise, it is zero.