没画完的画

喂马 劈柴 BBQ~
posts - 37, comments - 55, trackbacks - 0, articles - 0
  C++博客 ::  :: 新随笔 :: 联系 :: 聚合  :: 管理

IOleClientSite 接口(转贴)

Posted on 2008-09-12 11:20 没画完的画 阅读(1577) 评论(0)  编辑 收藏 引用 所属分类: Windows COM

IOleClientSite 接口
The IOleClientSite interface is the primary means by which an embedded object obtains information about the location and extent of its display site, its moniker, its user interface, and other resources provided by its container. An object server calls IOleClientSite to request services from the container. A container must provide one instance of IOleClientSite for every compound-document object it contains.
 
IOleClientSite 接口是嵌入对象获取由包容器程序提供的诸如显示位置、名字、用户界面、以及其他一些本地或外部资源信息的主要手段。在组件服务器中使用IOleClientSite接口可以请求到包容器提供的服务。在包容器程序必须为其所包含的每一个复合文档对象提供一个IOleClientSite接口的实现。
 
IOleClientSite接口的实现比较简单,只包含以下六个方法:

IOleClientSite方法           方法说明
SaveObject()              保存嵌入对象
GetMoniker()             请求组件名
GetContainer()            请求组件包容器指针
ShowObject()             要求包容器显示对象
OnShowWindow()      在组件变为可视或不可视时通知包容器
RequestNewObjectLayout() 要求包容器更改显示位置

Header: Declared in oleidl.h.
 


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理