Sdílet prostřednictvím


CDataRecoveryHandler::ReopenPreviousDocuments

Opens the previously open documents.

virtual BOOL ReopenPreviousDocuments();

Return Value

TRUE if at least one document was opened; otherwise FALSE.

Remarks

This method opens the most recent save of the previously open documents. If a document was not saved or autosaved, ReopenPreviousDocuments opens a blank document based on the template for that file type.

To use this method, AFX_RESTART_MANAGER_REOPEN_PREVIOUS_FILES must be set in m_dwRestartManagerSupportFlags. See CDataRecoveryHandler Class for more information about the m_dwRestartManagerSupportFlags parameter. If this parameter is not set, ReopenPreviousDocuments does nothing and returns FALSE.

If there are no documents stored in the list of previously open documents, ReopenPreviousDocuments does nothing and returns FALSE.

Requirements

Header: afxdatarecovery.h

See Also

Reference

CDataRecoveryHandler Class

Hierarchy Chart

CDataRecoveryHandler::QueryRestoreAutosavedDocuments

CDataRecoveryHandler::RestoreAutosavedDocuments