Expand Minimize

ITfContextOwnerCompositionServices interface

The ITfContextOwnerCompositionServices interface is implemented by the TSF manager and used by a context owner to manipulate compositions created by a text service.

Members

The ITfContextOwnerCompositionServices interface inherits from the IUnknown interface. ITfContextOwnerCompositionServices also has these types of members:

Methods

The ITfContextOwnerCompositionServices interface has these methods.

MethodDescription
TerminateComposition

Terminates a composition.

 

Remarks

Normally, an application creates a context and is the context owner. On occasion a text service will create a context. In this case, the text service is the context owner. For more information, see Edit Contexts.

Obtain this interface by calling ITfContext::QueryInterface with IID_ITfContextOwnerCompositionServices.

Examples

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();
}


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Msctf.h

IDL

Msctf.idl

DLL

Msctf.dll

See also

Edit Contexts
ITfContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft