IOleObjectImpl::Close

This method Changes the control from the running to the loaded state. Deactivates the control and destroys the control window if it exists. If the control class data member m_bRequiresSave is TRUE and the dwSaveOption parameter is either OLECLOSE_SAVEIFDIRTY or OLECLOSE_PROMPTSAVE, the control properties are saved before closing.

Syntax

HRESULT Close( DWORD dwSaveOption );

At a Glance

Header file: Atlctl.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

IOleObjectImpl Overview, IOleObjectImpl Methods, IOleObject::Close