Reverses or reapplies changes that have taken place in a markup container.
HRESULT retVal = object.ExecChange(pbRecord, fForward);
- pbRecord [in]
A pointer to a buffer that specifies a change record.
- fForward [in]
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.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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.