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.
HRESULT Close( DWORD dwSaveOption );
Header file: | Atlctl.h |
Platforms: | |
Versions: | Version 2.0 and later |
Complete documentation: | Visual C++ documentation |
IOleObjectImpl Overview, IOleObjectImpl Methods, IOleObject::Close