PaintRgn function (wingdi.h)
The PaintRgn function paints the specified region by using the brush currently selected into the device context.
C++
BOOL PaintRgn(
[in] HDC hdc,
[in] HRGN hrgn
);
[in] hdc
Handle to the device context.
[in] hrgn
Handle to the region to be filled. The region's coordinates are presumed to be logical coordinates.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Requirement | Value |
---|---|
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 |