InvertRgn

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

The InvertRgn function inverts the colors in the specified region.

Parameters

hdc

Identifies the device context.

hrgn

Identifies the region for which colors are inverted. The coordinates in the region are assumed to be logical coordinates.

Return Value

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

Comments

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.

See Also

FillRgn, PaintRgn