This topic has not yet been rated - Rate this topic

FillRgn function

Applies to: desktop apps only

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

Syntax

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

Parameters

hdc [in]

Handle to the device context.

hrgn [in]

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

hbr [in]

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

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Regions Overview
Region Functions
CreateBrushIndirect
CreateDIBPatternBrush
CreateHatchBrush
CreatePatternBrush
CreateSolidBrush
PaintRgn

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ