CDC::InvertRect 

void InvertRect( LPCRECT lpRect );

Parameters

lpRect

Points to a RECT that contains the logical coordinates of the rectangle to be inverted. You can also pass a CRect object for this parameter.

Remarks

Inverts the contents of the given rectangle. Inversion is a logical NOT operation and flips the bits of each pixel. On monochrome displays, the function makes white pixels black and black pixels white. On color displays, the inversion depends on how colors are generated for the display. Calling InvertRect twice with the same rectangle restores the display to its previous colors.

If the rectangle is empty, nothing is drawn.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::FillRect, ::InvertRect, CRect, RECT