共用方式為


CDataRecoveryHandler::RestoreAutosavedDocuments

Restores the autosaved documents based on user input.

virtual BOOL RestoreAutosavedDocuments();

Return Value

TRUE if this method successfully restores the documents.

Remarks

This method calls CDataRecoveryHandler::QueryRestoreAutosavedDocuments to determine which documents the user wants to restore. If a user decides not to restore an autosaved document, RestoreAutosavedDocuments deletes the autosave file. Otherwise, RestoreAutosavedDocuments replaces the open document with the autosaved version.

To use this method, either AFX_RESTART_MANAGER_REOPEN_PREVIOUS_FILES or AFX_RESTART_MANAGER_RESTORE_AUTOSAVED_FILES must be set in m_dwRestartManagerSupportFlags. See CDataRecoveryHandler Class for more information about the m_dwRestartManagerSupportFlags parameter.

Requirements

Header: afxdatarecovery.h

See Also

Reference

CDataRecoveryHandler Class

Hierarchy Chart

CDataRecoveryHandler::ReopenPreviousDocuments

CDataRecoveryHandler::QueryRestoreAutosavedDocuments