virtual CDocItem* GetNextItem( POSITION& pos ) const;
Return Value
A pointer to the document item at the specified position.
Parameters
pos
A reference to a POSITION value set by a previous call to GetNextItem; the initial value is returned by the GetStartPosition member function.
Remarks
Call this function repeatedly to access each of the items in your document. After each call, the value of pos is set to the POSITION value of the next item in the document. If the retrieved element is the last element in the document, the new value of pos is NULL.
Example
// Example for COleDocument::GetNextItem
// pDoc points to a COleDocument object
POSITION pos = pDoc->GetStartPosition();
CDocItem *pItem;
while( pos != NULL )
{
pItem = pDoc->GetNextItem( pos );
// Use pItem
}
COleDocument Overview | Class Members | Hierarchy Chart
See Also COleDocument::GetStartPosition, COleDocument::GetNextClientItem, COleDocument::GetNextServerItem