Share via


CDataRecoveryHandler::RemoveDocumentInfo

Removes the supplied document from the open document list.

virtual BOOL RemoveDocumentInfo(
   CDocument *pDocument
);

Parameters

Parameter

Description

[in] pDocument

A pointer to the document to remove.

Return Value

TRUE if pDocument was removed from the list; FALSE if an error occurred.

Remarks

When the user closes a document, the framework uses this method to remove it from the list of open documents.

If RemoveDocumentInfo cannot find pDocument in the list of open documents, it does nothing and returns TRUE.

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::CreateDocumentInfo

CDataRecoveryHandler::UpdateDocumentInfo