The m_viewList is an list defined in AFXWIN.H
CPtrList m_viewList; // list of views
It is an Data Member of CDocument Class.
Because each document can attach lots of view, and you can use CDocument::AddView function to attach a new view with the document, this view will be insert in the list(m_viewList).
GetHead is an member function of CPtrList, and it will return the first node in the list. When your editview created(in it's OnCreate function), it wiil call pContext->m_pCurrentDoc->A
You can search m_viewList under MFC source code, and debug your program.
Good Luck.
Main Topics
Browse All Topics





by: mikezangPosted on 2000-09-16 at 05:57:15ID: 4325575
You can find CPtrList m_viewList; // list of views XWIN.H(450 9), it is in CDocument class.
in file c:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\Include\AF