IOleDocumentView::GetInPlaceSite method (docobj.h)

Retrieves the view site associated with this view object.

Syntax

HRESULT GetInPlaceSite(
  [out] IOleInPlaceSite **ppIPSite
);

Parameters

[out] ppIPSite

A pointer to an IOleInPlaceSite pointer variable that receives the interface pointer to the document's view site.

Return value

This method returns S_OK on success. Other possible values include:

Return code Description
E_FAIL
The operation failed.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header docobj.h

See also

IOleDocumentView

IOleDocumentView::SetInPlaceSite

IOleInPlaceSite