Enables an object to invalidate a specified rectangle of its in-place image on the screen.
HRESULT InvalidateRect(
LPCRECT pRect, //Rectangle to be invalidated
BOOL fErase //Indicates whether to erase the background
);
An object is only allowed to invalidate pixels contained in its own site rectangle. Any attempt to invalidate an area outside of that rectangle should result in a no-op.
Windows NT: Use version 4.0 or later. New for OC96.
Windows: Use Windows 95 or later. New for OC96.
Windows CE: Unsupported.
Header: Declared in ocidl.h.