IOleDocumentView::GetDocumentIOleDocumentView::GetDocument*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IOleDocumentView::CloseView
*Next Topic: IOleDocumentView::GetInPlaceSite

IOleDocumentView::GetDocument

HRESULT GetDocument(
    IUnknown **ppunk
   );

Obtains the IUnknown interface pointer on the Active Document that owns this view.

ppunk
[out] Address of the IUnknown pointer of the Active Document that owns this view.

The caller is responsible for incrementing the reference count on the interface pointer obtained by this method. The caller must call IUnknown::Release on this pointer when it is no longer needed.

Because a view object must always be contained or aggregated in an Active Document, this method will always succeed. Before returning, this method should call IUnknown::AddRef on the pointer in the ppunk parameter.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.