Call this function to detach a view from a document.
void RemoveView( CView* pView );
Points to the view being removed.
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.