다음을 통해 공유


CDocTemplate::GetFirstDocPosition

Retrieves the position of the first document associated with this template.

virtual POSITION GetFirstDocPosition( ) const = 0;

Return Value

A POSITION value that can be used to iterate through the list of documents associated with this document template; or NULL if the list is empty.

Remarks

Use this function to get the position of the first document in the list of documents associated with this template. Use the POSITION value as an argument to CDocTemplate::GetNextDoc to iterate through the list of documents associated with the template.

CSingleDocTemplate and CMultiDocTemplate both override this pure virtual function. Any class you derive from CDocTemplate must also override this function.

Requirements

Header: afxwin.h

See Also

Concepts

CDocTemplate Class

CDocTemplate Members

Hierarchy Chart

CDocTemplate::GetNextDoc

CSingleDocTemplate Class

CMultiDocTemplate Class