Saves the view's state into the specified stream.
HRESULT SaveViewState(
IStream *pstm // Pointer to stream containing the view's state
// data
);
The view's state includes properties such as the view type, zoom factor, and location of insertion point. The container typically calls this function before deactivating the view. The stream can then later be used to reinitialize a view of the same document to this saved state through ApplyViewState.
According to the rules governing IPersistStream, a view must write its CLSID as the first element in the stream. Any cross-platform file format compatibility issues that apply to the document's storage representation also apply to this context.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in docobj.h.
IOleDocumentView::ApplyViewState, IPersistStream