CCmdTarget::OnFinalRelease
Called by the framework when the last OLE reference to or from the object is released.
virtual void OnFinalRelease( );
Remarks
Override this function to provide special handling for this situation. The default implementation deletes the object.
Requirements
Header: afxwin.h