CDataRecoveryHandler::RemoveDocumentInfo
從開啟的文件清單中移除所提供的文件。
virtual BOOL RemoveDocumentInfo(
CDocument *pDocument
);
參數
參數 |
描述 |
[in] pDocument |
要移除之文件的指標。 |
傳回值
TRUE ,如果 pDocument 從清單移除, FALSE ,如果發生錯誤則為。
備註
當使用者關閉一個文件時,架構會使用這個方法會從開啟的文件清單中移除它。
如果 RemoveDocumentInfo 無法在開啟的文件清單的 pDocument ,則不會做任何事並傳回 TRUE。
若要使用這個方法,在 m_dwRestartManagerSupportFlags必須設定 AFX_RESTART_MANAGER_REOPEN_PREVIOUS_FILES 。 請參閱 CDataRecoveryHandler 類別m_dwRestartManagerSupportFlags 有關參數的詳細資訊。
需求
標題: afxdatarecovery.h