Invalidate method
Indicates the invalid display rectangle that must be redrawn.
Syntax
HRESULT retVal = object.Invalidate(pRect);
Parameters
pRect [in]
Type: RECTA pointer to a RECT that encloses the invalid region.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.