Partager via


COleDocument::AddItem

Call this function to add an item to the document.

virtual void AddItem( 
   CDocItem* pItem  
);

Parameters

  • pItem
    Pointer to the document item being added.

Remarks

You do not need to call this function explicitly when it is called by the COleClientItem or COleServerItem constructor that accepts a pointer to a document.

Requirements

Header: afxole.h

See Also

Reference

COleDocument Class

Hierarchy Chart

CDocItem Class

COleDocument::RemoveItem

COleServerItem::COleServerItem

COleClientItem::COleClientItem