IMarkupContainer::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 container 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, call QueryInterface on the IMarkupContainer interface pointer.

Show: