CCmdTarget::OnFinalRelease

This method is called by the framework when the last COM reference to or from the object is released. Override this method to provide special handling for this situation. The default implementation deletes the object.

At a Glance

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

Syntax

virtual void OnFinalRelease( );