CDocument::OnLoadDocumentFromStream
Called by the framework when it needs to load the document data from a stream.
virtual HRESULT OnLoadDocumentFromStream(
IStream* pStream,
DWORD grfMode
);
Parameters
pStream
A pointer to an incoming stream.grfMode
Access mode to the stream.
Return Value
S_OK if the load is successful; otherwise an error code.
Requirements
Header: afxwin.h