FillRgn

This function fills a region using the specified brush.

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

Parameters

  • hdc
    [in] Handle to the device context.
  • hrgn
    [in] Handle to the region to be filled. The regions coordinates are presumed to be in logical units.
  • hbr
    [in] Handle to the brush to be used to fill the region.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Wingdi.h   Mgdraw.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CreateSolidBrush, GetLastError, GetStockObject

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.