Поделиться через


CDataRecoveryHandler::UpdateDocumentInfo

Updates the information for a document because the user saved it.

virtual BOOL UpdateDocumentInfo(
   CDocument *pDocument
);

Parameters

Parameter

Description

[in] pDocument

A pointer to the saved document.

Return Value

TRUE if this method deleted the autosaved document and updated the document information; FALSE if an error occurred.

Remarks

When a user saves a document, the application removes the autosaved file because it is no longer needed. UpdateDocumentInfo deletes the autosaved file by calling CDataRecoveryHandler::RemoveDocumentInfo. UpdateDocumentInfo then adds the information from pDocument to the list of currently open documents because RemoveDocumentInfo deletes that information, but the saved document is still open.

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.

Requirements

Header: afxdatarecovery.h

See Also

Reference

CDataRecoveryHandler Class

Hierarchy Chart

CDataRecoveryHandler::RemoveDocumentInfo