ExecChange method

Reverses or reapplies changes that have taken place in a markup container.

Syntax

HRESULT retVal = object.ExecChange(pbRecord, fForward);

Parameters

  • pbRecord [in]
    Type: BYTE

    A pointer to a buffer that specifies a change record.

  • fForward [in]
    Type: BOOL

    A BOOL value that specifies the direction in which to execute the record. Use TRUE to reapply the change; use FALSE to reverse the change.

Return value

Type: HRESULT

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

Remarks

This method gets the data to undo or redo changes in a markup container from the change record stored at pbRecord. Change records keep track of the changes that have occurred in a markup container. They typically come from the IHTMLChangeLog::GetNextChange method.

The change log must support the kind of change information requested by fForward. For example, to reverse a change (fForward = FALSE), the change log must have been created with the fBackward parameter of the IMarkupContainer2::CreateChangeLog method set to TRUE.

See also

Reference

IHTMLChangeSink

IHTMLChangeLog