IOleDocumentView interface (docobj.h)

The IOleDocumentView interface enables a container to communicate with each view supported by a document object.

A document object that supports multiple views of its data represents each view as a separate object. Each document view object implements IOleDocumentView, along with IOleInPlaceObject, IOleInPlaceActiveObject, and optional interfaces such as IPrint and IOleCommandTarget. A document object that supports only a single view does not require that view to be implemented as a separate object. Instead, both document and view can be implemented as a single class.

Inheritance

The IOleDocumentView interface inherits from the IUnknown interface. IOleDocumentView also has these types of members:

Methods

The IOleDocumentView interface has these methods.

 
IOleDocumentView::ApplyViewState

Initializes a view with view state previously saved in call to IOleDocumentView::SaveViewState.
IOleDocumentView::Clone

Creates a duplicate view object with an internal state identical to that of the current view.
IOleDocumentView::CloseView

Instructs a document view to close itself and release its IOleInPlaceSite pointer.
IOleDocumentView::GetDocument

Obtains the IUnknown interface pointer on the document object that owns this view.
IOleDocumentView::GetInPlaceSite

Retrieves the view site associated with this view object.
IOleDocumentView::GetRect

Retrieves the rectangular coordinates of the viewport in which the view is or will be activated.
IOleDocumentView::Open

Displays a document view in a separate pop-up window. The semantics are equivalent to IOleObject::DoVerb with OLEIVERB_OPEN.
IOleDocumentView::SaveViewState

Saves the view state into the specified stream.
IOleDocumentView::SetInPlaceSite

Associates a container's document view site with a document's view object.
IOleDocumentView::SetRect

Sets the rectangular coordinates of the viewport in which the view is to be activated or resets the coordinates of the viewport in which a view is currently activated.
IOleDocumentView::SetRectComplex

Sets the rectangular coordinates of the viewport, scroll bars, and size box.
IOleDocumentView::Show

Activates or deactivates a view.
IOleDocumentView::UIActivate

Activates or deactivates a document view's user interface elements, such as menus, toolbars, and accelerators.

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