Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWinApp::GetNextDocTemplate
Collapse the table of content
Expand the table of content

CWinApp::GetNextDocTemplate

Gets the document template identified by pos, then sets pos to the POSITION value.

CDocTemplate* GetNextDocTemplate( 
   POSITION& pos  
) const;

pos

A reference to a POSITION value returned by a previous call to GetNextDocTemplate or GetFirstDocTemplatePosition. The value is updated to the next position by this call.

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.

Header: afxwin.h

Show:
© 2015 Microsoft