Enables an object to invalidate a specified region of its in-place image on the screen.
HRESULT InvalidateRgn(
HRGN hRGN, //Region to be invalidated
BOOL fErase //Indicates whether to erase the background
);
An object is only allowed to invalidate pixels contained in its own site region. Any attempt to invalidate an area outside of that region 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.