Programmer's Reference
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:
- 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.
- Implement methods to create OleClient widgets and create the
OLE objects that will appear within their borders.
- Implement methods to enable copying, cutting, and pasting OLE objects to
and from the clipboard.
- Create and manage a menu containing the OLE object's verbs.
- Invoke the Links dialog to allow a user to manage the links of any linked
OLE objects.
- Save and restore embedded or linked OLE objects to and from files.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]