|
IOleClientSite::SaveObject
Saves the object associated with the client site. This function is
synchronous; by the time it returns, the save will be completed.
HRESULT SaveObject();
Parameter
HRESULT SaveObject(void)
Return Values
S_OK
The object was saved.
E_FAIL
The object was not saved.
Comments
An embedded object calls IOleClientSite::SaveObject to ask its container to save it to persistent storage when an end user
chooses the File Update or Exit commands. The call is synchronous, meaning that by
the time it returns, the save operation will be completed.
Calls to IOleClientSite::SaveObject occur in most implementations of IOleObject::Close. Normally, when a container tells an object to close, the container passes a
flag specifying whether the object should save itself before closing, prompt
the user for instructions, or close without saving itself. If an object is
instructed to save itself, either by its container or an end user, it calls IOleClientSite::SaveObject to ask the container application to save the object's contents before the
object closes itself. If a container instructs an object not to save itself, the
object should not call SaveObject.
See Also
IOleObject::Close
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|