共用方式為


CWinApp::GetFirstDocTemplatePosition

Gets the position of the first document template in the application.

POSITION GetFirstDocTemplatePosition( ) const;

Return Value

A POSITION value that can be used for iteration or object pointer retrieval; NULL if the list is empty.

Remarks

Use the POSITION value returned in a call to GetNextDocTemplate to get the first CDocTemplate object.

Requirements

Header: afxwin.h

See Also

Reference

CWinApp Class

Hierarchy Chart

CWinApp::AddDocTemplate

CWinApp::GetNextDocTemplate

Other Resources

CWinApp Members