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  
);

Parameters

  • 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.

Remarks

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

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::UpdateLink

Other Resources

COleClientItem Members