The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



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

      void Delete(
   BOOL bAutoDelete = TRUE 


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

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.


Header: afxole.h