COleServerItem* GetNextServerItem( POSITION& pos ) const;
Return Value
A pointer to the next server item in the document, or NULL if there are no more server items.
Parameters
pos
A reference to a POSITION value set by a previous call to GetNextServerItem; the initial value is returned by the GetStartPosition member function.
Remarks
Call this function repeatedly to access each of the server items in your document. After each call, the value of pos is set for the next item in the document, which might or might not be a server item.
Example
// Example for COleDocument::GetNextServerItem
// pDoc points to a COleDocument object
POSITION pos = pDoc->GetStartPosition();
COleServerItem *pItem;
while ( ( pItem = pDoc->GetNextServerItem( pos ) ) != NULL )
{
// Use pItem
}
COleDocument Overview | Class Members | Hierarchy Chart
See Also COleServerItem, COleDocument::GetStartPosition, COleDocument::GetNextClientItem, COleDocument::GetNextItem