FillRgn

  BOOL FillRgn(hdc, hrgn, hbr)    
  HDC hdc; /* handle of a device context */
  HRGN hrgn; /* handle of the region to be filled */
  HBRUSH hbr; /* handle of the brush used to fill the region */

The FillRgn function fills the given region using the specified brush.

Parameters

hdc

Identifies the device context.

hrgn

Identifies the region to be filled. The coordinates in the region are assumed to be in logical units.

hbr

Identifies the brush to be used to fill the region.

Return Value

The return value is TRUE if the function is successful or FALSE if an error occurs.

See Also

CreateBrushIndirect, CreateDIBPatternBrush, CreateHatchBrush, CreatePatternBrush, CreateSolidBrush, PaintRgn