PaintRgn

Syntax

BOOL PaintRgn(hDC,hRgn)

This function fills the region specified by the hRgn parameter with the selected brush.

Parameter Type/Description  

hDC HDC Identifies the device context that contains the region.  
hRgn HRGN Identifies the region to be filled. The coordinates for the given region are specified in device units.  

Return Value

The return value specifies the outcome of the function. It is nonzero if the function is successful. Otherwise, it is zero.