Share via


CDocument::PreCloseFrame

This member function is called by the framework before the frame window is destroyed.

virtual void PreCloseFrame( 
   CFrameWnd* pFrame  
);

Parameters

  • pFrame
    Pointer to the CFrameWnd that holds the associated CDocument object.

Remarks

It can be overridden to provide custom cleanup, but be sure to call the base class as well.

The default of PreCloseFrame does nothing in CDocument. The CDocument-derived classes COleDocument and CRichEditDoc use this member function.

Requirements

Header: afxwin.h

See Also

Reference

CDocument Class

Hierarchy Chart

Other Resources

CDocument Members