CDocument::OnChangedViewList

This method is called by the framework after a view is added to or removed from the document. The default implementation of this method checks whether the last view is being removed and, if so, deletes the document.

Override this method if you want to perform special processing when the framework adds or removes a view. For example, if you want a document to remain open even when there are no views attached to it, override this method.

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 void OnChangedViewList( );

See Also

CDocument::AddView, CDocument::RemoveView