CDocument::ReleaseFile

此成員函式由架構呼叫發出檔案,以便讓其他應用程式使用。

virtual void ReleaseFile(
   CFile* pFile,
   BOOL bAbort 
);

參數

  • pFile
    in 要釋放的 C 檔案物件的指標。

  • bAbort
    指定檔案使用 CFile::CloseCFile::Abort,是否要釋放。 使用 CFile::Close,因此,如果檔案會被釋放, 使用 CFile::Abort,因此,如果檔案會被釋放。

備註

如果 bAbort 是 ReleaseFile 呼叫 CFile::Abort,,會發出檔案。CFile::Abort 不會擲回例外狀況。

如果 bAbort 是 ReleaseFile 呼叫 CFile::Close ,會發出檔案。

在出現之前,請覆寫這個成員函式使用者要求的動作檔。

需求

Header: afxwin.h

請參閱

參考

CDocument 類別

階層架構圖

CDocTemplate 類別

CFile::Close

CFile::Abort