Creates an object that enumerates the views supported by a document object or, if only one view is supported, returns a pointer to that view.
HRESULT EnumViews(
IEnumOleDocumentViews ** ppEnum,
//Address of output variable that
// receives the IEnumOleDocumentViews
// interface pointer
IOleDocumentView ** ppView //Address of output variable that
// receives the IOleDocumentView
// interface pointer
);
This method supports the standard return value E_OUTOFMEMORY, as well as the following:
If a document object supports multiple views of its data, it must also implement IEnumOleDocumentViews and pass that interface's pointer in the out parameter *ppEnum. Using this pointer, the container can enumerate the views supported by the document object.
If the document object supports only a single view, IOleDocument::EnumViews passes that view's IOleDocumentView pointer in the out parameter *ppView.
Call this method to determine if a document object supports more than one view of its data. If it does, the caller can use the pointer written to *ppEnum to specify which view to activate. When finished with the pointer, the caller must free it by calling Release.
This method must be completely implemented on all document objects; E_NOTIMPL is not an acceptable return value.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in docobj.h.
IEnumOleDocumentViews, IOleDocumentView