void CDocManager::CloseAllDocuments( BOOL bEndSession ) /*****************************************************/ { POSITION position = m_templateList.GetHeadPosition(); while( position != NULL ) { CDocTemplate *pTemplate = (CDocTemplate *)m_templateList.GetNext( position ); ASSERT( pTemplate != NULL ); pTemplate->CloseAllDocuments( bEndSession ); } }