Partager via


CDocument::LoadDocumentFromStream

Called to load document data from a stream.

virtual HRESULT LoadDocumentFromStream(
   IStream* pStream,
   DWORD dwGrfMode
);

Parameters

  • pStream
    A pointer to a stream. This stream is supplied by the Shell.

  • dwGrfMode
    Access mode to the stream.

Return Value

S_OK if the load operation succeeds, otherwise HRESULT with an error code.

Remarks

You can override this method in a derived class to customize how to load data from the stream.

Requirements

Header: afxwin.h

See Also

Reference

CDocument Class