Use the following guidelines for updating objects from SDI server applications.
When an SDI application functions as a server for an embedded object, the Save command on the File menu changes to Update, as previously shown in Figure 10. (This change occurs only for embedded objects, not for linked objects.) The Update command updates the object in the container document, but (like Save) does not close the server; the server is left open to allow the user to make further changes after seeing the effects (for example, repagination) of the update in the client. If the user tries to exit the server without updating the object, the server displays the warning message shown in Figure 13.
3.5.1.2 The Save Copy As, File New, and Open Commands
When editing an embedded object, the user can choose the Save Copy As command from the File menu to save a copy of the embedded object in a separate file. Save Copy As does not sever the connection with the client application. The inclusion of the New or Open commands in the File menu is not recommended for SDI applications. These commands should be replaced by the Import command, which allows the user to load an existing file (object) into the server application without severing the connection between the server and the client application.
If an SDI application breaks the connection to the client by implementing the File New and File Open commands, the server should display the warning shown in Figure 21.
Figure 21. Warning message when terminating OLE connection with modified object
3.5.1.3 Closing a Server or a Client Application
When the server application closes, the focus returns to the client application. If the user closes a client application while server applications for that client are still open, the usual client application save confirmation appears. (The container document is considered modified as soon as any object is opened.) If the user chooses to save the container document, all objects are updated without prompting before the file is actually saved. Declining to save the file will likewise discard any modifications made to the objects.