PaintRgn

  BOOL PaintRgn(hdc, hrgn)    
  HDC hdc; /* handle of device context */
  HRGN hrgn; /* handle of region to be painted */

The PaintRgn function paints the given region using the brush that is currently selected into the device context.

Parameters

hdc

Identifies the device context.

hrgn

Identifies the region to be filled. The coordinates in the region are assumed to be in logical coordinates.

Return Value

The return value is TRUE if the function is successful. Otherwise, it is FALSE.