Udostępnij za pośrednictwem


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

Reference

CDocTemplate Class

Hierarchy Chart

CDocTemplate::GetNextDoc

CSingleDocTemplate Class

CMultiDocTemplate Class

Other Resources

CDocTemplate Members