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.
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.
The return value is TRUE if the function is successful. Otherwise, it is FALSE.
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.
FillRgn, PaintRgn