FillRgn function

The FillRgn function fills a region by using the specified brush.

Syntax

BOOL FillRgn(
  HDC    hdc,
  HRGN   hrgn,
  HBRUSH hbr
);

Parameters

hdc

Handle to the device context.

hrgn

Handle to the region to be filled. The region's coordinates are presumed to be in logical units.

hbr

Handle to the brush to be used to fill the region.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

CreateBrushIndirect

CreateDIBPatternBrush

CreateHatchBrush

CreatePatternBrush

CreateSolidBrush

PaintRgn

Region Functions

Regions Overview