CDataRecoveryHandler::CreateDocumentInfo

添加文档到列表打开文档。

virtual BOOL CreateDocumentInfo(
   CDocument *pDocument
);

参数

Parameter

说明

[in] pDocument

CDocument的指针。 此方法创建此 CDocument的文档信息。

返回值

默认实现返回 TRUE。

备注

此方法检查 pDocument 是否在列表已经文档,它将文档之前。 如果 pDocument 已经在列表中,会自动存储的文件与 pDocument的此方法删除。

若要使用此方法,在 m_dwRestartManagerSupportFlags必须设置 AFX_RESTART_MANAGER_AUTOSAVE_AT_RESTART 或 AFX_RESTARTMANAGER_AUTOSAVE_AT_INTERVAL。 请参见 CDataRecoveryHandler选件类 有关 m_dwRestartManagerSupportFlags 参数的更多信息。

要求

标头: afxdatarecovery.h

请参见

参考

CDataRecoveryHandler选件类

层次结构图

CDocument选件类

CDataRecoveryHandler::UpdateDocumentInfo

CDataRecoveryHandler::RemoveDocumentInfo