COleClientItem::Close
TOC
Collapse the table of content
Expand the table of content

COleClientItem::Close

 

Call this function to change the state of an OLE item from the running state to the loaded state, that is, loaded with its handler in memory but with the server not running.


      void Close(
   OLECLOSE dwCloseOption = OLECLOSE_SAVEIFDIRTY 
);

dwCloseOption

Flag specifying under what circumstances the OLE item is saved when it returns to the loaded state. It can have one of the following values:

  • OLECLOSE_SAVEIFDIRTY   Save the OLE item.

  • OLECLOSE_NOSAVE   Do not save the OLE item.

  • OLECLOSE_PROMPTSAVE   Prompt the user on whether to save the OLE item.

This function has no effect when the OLE item is not running.

For more information, see IOleObject::Close in the Windows SDK.

Requirements

Header: afxole.h

Show:
© 2016 Microsoft