CDocument::CanCloseFrame

This method is called by the framework before a frame window displaying the document is closed. The default implementation checks if there are other frame windows displaying the document. If the specified frame window is the last one that displays the document, the method prompts the user to save the document if it has been modified. Override this method if you want to perform special processing when a frame window is closed. This is an advanced overridable.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL CanCloseFrame( CFrameWnd* pFrame );

See Also

CDocument::SaveModified