InvalidateRect method

Informs MSHTML that a rectangular area of a rendered behavior should be redrawn.

Syntax


HRESULT retVal = object.InvalidateRect(prcInvalid);

Parameters

prcInvalid [in]

Type: RECT

Pointer to a variable of type RECT that contains the bounds of the area to be redrawn.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The coordinate-system origin for this rectangle is the top-left corner of the element to which the behavior is attached.

A call to this method causes MSHTML to call IHTMLPainter::Draw.

Setting prcInvalid to NULL causes the entire element to be redrawn.

See also

IHTMLPaintSite::InvalidateRegion

 

 

Show: