The InvertRgn function inverts the colors in the specified region.
BOOL InvertRgn(
HDC hdc, |
// handle of device context |
HRGN hrgn |
// handle of region to be inverted |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
On monochrome screens, the InvertRgn function makes white pixels black and black pixels white. On color screens, this inversion is dependent on the type of technology used to generate the colors for the screen.