IOleObjectImpl::Close

HRESULT Close( DWORD dwSaveOption );

See IOleObject::Close in the Win32 SDK.

Remarks

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.

The pointers held in the control class data members m_spInPlaceSite and m_spAdviseSink are released, and the data members m_bNegotiatedWnd, m_bWndless, and m_bInPlaceSiteEx are set to FALSE.

IOleObjectImpl OverviewClass Members