ITfCleanupContextDurationSink interface (msctf.h)

The ITfCleanupContextDurationSink interface is implemented by a text service to receive notifications when a context cleanup operation is performed. This notification sink is installed by calling ITfSourceSingle::AdviseSingleSink with IID_ITfCleanupContextDurationSink.

Inheritance

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

Methods

The ITfCleanupContextDurationSink interface has these methods.

 
ITfCleanupContextDurationSink::OnEndCleanupContext

ITfCleanupContextDurationSink::OnEndCleanupContext method
ITfCleanupContextDurationSink::OnStartCleanupContext

ITfCleanupContextDurationSink::OnStartCleanupContext method

Remarks

A context cleanup occurs when:

  • The text service is deactivated while a context is still on the context stack. This can occur when the active text service is changed or when the active language changes while the text service is active.
  • ITfThreadMgr::Deactivate is called while a context is still on the context stack.
A text service can use the notifications of this interface to prevent itself from performing any context initialization during the context cleanup operation.

Requirements

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

See also

ITfSourceSingle::AdviseSingleSink

ITfThreadMgr::Deactivate

IUnknown