iTfContextOwnerCompositionServices 接口 (msctf.h)

ITfContextOwnerCompositionServices 接口由 TSF 管理器实现,并由上下文所有者用来操作文本服务创建的合成。

继承

ITfContextOwnerCompositionServices 接口继承自 ITfContextComposition 接口。 ITfContextOwnerCompositionServices 还具有以下类型的成员:

方法

ITfContextOwnerCompositionServices 接口包含以下方法。

 
ITfContextOwnerCompositionServices::TerminateComposition

ITfContextOwnerCompositionServices::TerminateComposition 方法

注解

通常,应用程序创建上下文,并且是上下文所有者。 有时,文本服务会创建上下文。 在这种情况下,文本服务是上下文所有者。 有关详细信息,请参阅 编辑上下文

通过使用 IID_ITfContextOwnerCompositionServices 调用 ITfContext::QueryInterface 来获取此接口。

示例

ITfContext


HRESULT hr;
ITfContextOwnerCompositionServices *pCompServices;

//Get the ITfContextOwnerCompositionServices interface pointer. 
hr = m_pContext->QueryInterface(IID_ITfContextOwnerCompositionServices, (LPVOID*)&pCompServices);
if(SUCCEEDED(hr))
{
    //Use the interface. 

    //Release the interface. 
    pCompServices->Release();
}

要求

要求
最低受支持的客户端 Windows 2000 专业版 [桌面应用 |UWP 应用]
最低受支持的服务器 Windows 2000 Server [桌面应用 |UWP 应用]
目标平台 Windows
标头 msctf.h
可再发行组件 Windows 2000 专业版上的 TSF 1.0

另请参阅

编辑上下文

ITfContext

ITfContextComposition