共用方式為


CDocument::CanCloseFrame

virtualBOOLCanCloseFrame(CFrameWnd*pFrame);

Return Value

Nonzero if it is safe to close the frame window; otherwise 0.

Parameters

pFrame

Points to the frame window of a view attached to the document.

Remarks

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 function prompts the user to save the document if it has been modified. Override this function if you want to perform special processing when a frame window is closed. This is an advanced overridable.

CDocument OverviewClass MembersHierarchy Chart

See Also   CDocument::SaveModified