Building an OLE document container
An OLE document container is an application that supports embedding or linking objects from other OLE-enabled applications. The document container provides a place in its user interface for the OLE object to display its contents (or its icon) and optionally allows that object to be edited by its server. The container may also allow embedded or linked OLE objects to be:
•Physically moved or resized within its own windows
•Copied to the clipboard for pasting into another application
•Dragged to another application
In addition, a container may save the data associated with an embedded OLE object directly into one of its own files.
The steps to create an OLE-enabled application that will contain OLE objects are:
1. As part of the initialization of the user-interface widget hierarchy, create an OleMainWindow and enable its menu groups to support in-place activation of any descendent OleClient widgets.
2. Implement methods to create OleClient widgets and create the OLE objects that will appear within their borders.
3. Implement methods to enable copying, cutting, and pasting OLE objects to and from the clipboard.
4. Create and manage a menu containing the OLE object's verbs.
5. Invoke the Links dialog to allow a user to manage the links of any linked OLE objects.
6. Save and restore embedded or linked OLE objects to and from files.
Last modified date: 01/29/2015