我在一个例子里面看到有它但不知是做什么的.

解决方案 »

  1.   

    COleClientItem
    The COleClientItem class defines the container interface to OLE items. An OLE item represents data, created and maintained by a server application, which can be “seamlessly” incorporated into a document so that it appears to the user to be a single document. The result is a “compound document” made up of the OLE item and a containing document.An OLE item can be either embedded or linked. If it is embedded, its data is stored as part of the compound document. If it is linked, its data is stored as part of a separate file created by the server application, and only a link to that file is stored in the compound document. All OLE items contain information specifying the server application that should be called to edit them.COleClientItem defines several overridable functions that are called in response to requests from the server application; these overridables usually act as notifications. This allows the server application to inform the container of changes the user makes when editing the OLE item, or to retrieve information needed during editing.COleClientItem can be used with either the COleDocument, COleLinkingDoc, or COleServerDoc class. To use COleClientItem, derive a class from it and implement the OnChange member function, which defines how the container responds to changes made to the item. To support in-place activation, override the OnGetItemPosition member function. This function provides information about the displayed position of the OLE item.For more information about using the container interface, see the articlesContainers: Implementing a Container andActivation in Visual C++ Programmer’s Guide.Note   The OLE documentation refers to embedded and linked items as “objects” and refers to types of items as “classes.” This reference uses the term “item” to distinguish the OLE entity from the corresponding C++ object and the term “type” to distinguish the OLE category from the C++ class.