Share via


Gdi::InvertRect_I (Windows Embedded CE 6.0)

1/6/2010

This method inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the interior of the rectangle.

Syntax

static WINUSERAPI BOOL WINAPI InvertRect_I(
  HDC hdc,
  const RECT* lprc
);

Parameters

  • hdc
    [in] Handle to the device context.
  • lprc
    [in] Pointer to a RECT structure that contains the logical coordinates of the rectangle to be inverted.

Return Value

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

On monochrome screens, Gdi::InvertRect_I makes white pixels black and black pixels white.

On color screens, the inversion depends on how colors are generated for the screen.

Calling Gdi::InvertRect_I twice for the same rectangle restores the display to its previous colors.

Requirements

Header gdi.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Gdi
Gdi::FillRect_I
RECT