Export (0) Print
Expand All

IMarkupPointer::OwningDoc Method

Retrieves the top-level document associated with this object.

Syntax


HRESULT OwningDoc(
    IHTMLDocument2 **ppDoc
);

Parameters

ppDoc
[out] Address of a pointer variable that receives an IHTMLDocument2 interface pointer for the top-level document associated with this object.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

For a markup pointer in a viewlink document, this method does not retrieve an IHTMLDocument2 interface pointer for the viewlink document. Rather, this method retrieves an interface pointer for the top-most document containing the viewlink document. To obtain an IHTMLDocument2 interface pointer for the viewlink document:

  1. Call IMarkupPointer::GetContainer on the IMarkupPointer interface pointer.
  2. Call QueryInterface on the IMarkupContainer interface pointer retrieved by IMarkupPointer::GetContainer.

Community Additions

ADD
Show:
© 2014 Microsoft