InvertRgn

Syntax

BOOL InvertRgn(hDC,hRgn)

This function inverts the colors in the region specified by the hRgn parameter. On monochrome displays, the InvertRgn function makes white pixels black, and black pixels white. On color displays, the inversion depends on how the colors are generated for the display.

Parameter Type/Description  

hDC HDC Identifies the device context for the region.  
hRgn HRGN Identifies the region to be filled. The coordinates for the 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.