This method attaches a view to the document. This method adds the specified view to the list of views associated with the document; the method also sets the view’s document pointer to this document. The framework calls this method when attaching a newly created view object to a document.
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 |
void AddView( CView* pView );
CDocTemplate, CDocument::GetFirstViewPosition, CDocument::GetNextView, CDocument::RemoveView, CView::GetDocument