Retrieves the document associated with this container.
Syntax
HRESULT OwningDoc(
    IHTMLDocument2 **ppDoc
);
Parameters
- OwningDoc
- Address of a pointer to an IHTMLDocument2 interface associated with this container.
Return Value
Returns S_OK if successful, or an error code otherwise.