Freigeben über


COleClientItem::Delete

Call this function to delete the OLE item from the container document.

void Delete(
   BOOL bAutoDelete = TRUE 
);

Parameters

  • bAutoDelete
    Specifies whether the item is to be removed from the document.

Remarks

This function calls the Release member function, which in turn deletes the C++ object for the item, permanently removing the OLE item from the document. If the OLE item is embedded, the native data for the item is deleted. It always closes a running server; therefore, if the item is an open link, this function closes it.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::Release

Other Resources

COleClientItem Members