ITfContextOwnerCompositionServices interface (msctf.h)

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

Inheritance

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

Methods

The ITfContextOwnerCompositionServices interface has these methods.

 
ITfContextOwnerCompositionServices::TerminateComposition

ITfContextOwnerCompositionServices::TerminateComposition method

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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header msctf.h
Redistributable TSF 1.0 on Windows 2000 Professional

See also

Edit Contexts

ITfContext

ITfContextComposition