CDocument::RemoveView
voidRemoveView(CView*pView);
Parameters
pView
Points to the view being removed.
Remarks
Call this function to detach a view from a document. This function removes the specified view from the list of views associated with the document; it also sets the view’s document pointer to NULL. This function is called by the framework when a frame window is closed or a pane of a splitter window is closed.
Call this function only if you are manually detaching a view. Typically you will let the framework detach documents and views by defining a CDocTemplate object to associate a document class, view class, and frame window class.
See the example at AddView for a sample implementation.
CDocument Overview | Class Members | Hierarchy Chart
See Also CDocument::AddView, CDocument::GetFirstViewPosition, CDocument::GetNextView