CWinApp::GetNextDocTemplate
Visual Studio 2012
Gets the document template identified by pos, then sets pos to the POSITION value.
CDocTemplate* GetNextDocTemplate( POSITION& pos ) const;
A pointer to a CDocTemplate object.
You can use GetNextDocTemplate in a forward iteration loop if you establish the initial position with a call to GetFirstDocTemplatePosition.
You must ensure that your POSITION value is valid. If it is invalid, then the Debug version of the Microsoft Foundation Class Library asserts.
If the retrieved document template is the last available, then the new value of pos is set to NULL.