Sorry, I can't input chinese now.
Call CWinApp::GetFirstDocTemplatePosition() first, then call CWinApp::GetNextDocTemplate() to get a pointer to CDocTemplate,
call member fucntion GetFirstDocPosition() and GetNextDoc() of CDocTemplate to
get a pointer to CDocument, call GetFirstViewPosition() and GetNextView() of
CDocument to get CView pointer