Posted on 2008-09-12 11:20
沒畫完的畫 閱讀(1600)
評論(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.