可能只是在创建类时, 基类列表中没有把它给列出来吧了, 其实是可以以它作为基类进行派生的, 你只需要求包括头 文件afxole.h在定义类时, 将它指定义基类就行了. class YourClass : public COleClientItem{}你可以参考以下msdn的内容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
其实是可以以它作为基类进行派生的, 你只需要求包括头
文件afxole.h在定义类时, 将它指定义基类就行了.
class YourClass : public COleClientItem{}你可以参考以下msdn的内容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