Contents Index Topic Contents | ||
Previous Topic: IOleDocumentView::GetDocument Next Topic: IOleDocumentView::GetRect |
IOleDocumentView::GetInPlaceSite
HRESULT GetInPlaceSite( IOleInPlaceSite **ppIPSite );Retrieves the view site associated with this view object.
- Returns S_OK if successful, or E_FAIL otherwise.
- ppIPSite
- [out] Address of the view site's IOleInPlaceSite interface pointer.
IOleDocumentView::GetInPlaceSite obtains the most recent IOleInPlaceSite pointer passed by IOleDocumentView::SetInPlaceSite, or NULL if IOleDocumentView::SetInPlaceSite has not yet been called. If this pointer is not NULL, this method will call IUnknown::AddRef on the pointer. The caller is responsible for releasing it. A document view must implement this method completely; E_NOTIMPL is not an acceptable return value.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.