Compartir a través de


InvalidateRegion method

Informs MSHTML that a region of a rendered behavior should be redrawn.

Syntax

HRESULT retVal = object.InvalidateRegion(rgnInvalid);

Parameters

  • rgnInvalid [in]
    Type: HRGN

    HRGN value that specifies a description of the area that needs 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 region 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 rgnInvalid to NULL causes the entire element to be redrawn.

See also

CRgn