Contents Index Topic Contents | ||
Previous Topic: IOleDocumentView Next Topic: IOleDocumentView::Clone |
IOleDocumentView::ApplyViewState
HRESULT ApplyViewState( IStream *pstm );Initializes a view to a previously saved view state.
- Returns one of the following values:
S_OK Success. E_NOTIMPL This view has no meaningful state to load. This error should be rare because most views will have at least some state information worth loading. E_POINTER The value in the pstm parameter is NULL.
- pstm
- [in] Address of a stream containing data from which the view should initialize itself.
Typically, this method is called after an existing view has been created in the container but before that view has been displayed. It is the responsibility of the view to validate the data in the view stream; the container does not attempt to interpret the view's state data.
See also IOleDocument::CreateView, IOleDocumentView::SaveViewState
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.