Compartilhar via


CDocument::RemoveView

Call this function to detach a view from a document.

void RemoveView(
   CView* pView 
);

Parameters

  • pView
    Points to the view being removed.

Remarks

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.

Requirements

Header: afxwin.h

See Also

Reference

CDocument Class

Hierarchy Chart

CDocument::AddView

CDocument::GetFirstViewPosition

CDocument::GetNextView

Other Resources

CDocument Members