The FillRgn function fills a region by using the specified brush.
BOOL FillRgn(
HDC hdc, |
// handle to device context |
HRGN hrgn, |
// handle to region to be filled |
HBRUSH hbr |
// handle to brush used to fill the region |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
CreateBrushIndirect, CreateDIBPatternBrush, CreateHatchBrush, CreatePatternBrush, CreateSolidBrush, PaintRgn