ITfThreadMgr interface

The ITfThreadMgr defines the primary object implemented by the TSF manager. ITfThreadMgr is used by applications and text services to activate and deactivate text services, create document managers, and maintain the document context focus.

Methods

The ITfThreadMgr interface has these methods.

Method Description
ITfThreadMgr::Activate ITfThreadMgr::Activate method
ITfThreadMgr::AssociateFocus ITfThreadMgr::AssociateFocus method
ITfThreadMgr::CreateDocumentMgr ITfThreadMgr::CreateDocumentMgr method
ITfThreadMgr::Deactivate ITfThreadMgr::Deactivate method
ITfThreadMgr::EnumDocumentMgrs ITfThreadMgr::EnumDocumentMgrs method
ITfThreadMgr::EnumFunctionProviders ITfThreadMgr::EnumFunctionProviders method
ITfThreadMgr::GetFocus ITfThreadMgr::GetFocus method
ITfThreadMgr::GetFunctionProvider ITfThreadMgr::GetFunctionProvider method
ITfThreadMgr::GetGlobalCompartment ITfThreadMgr::GetGlobalCompartment method
ITfThreadMgr::IsThreadFocus ITfThreadMgr::IsThreadFocus method
ITfThreadMgr::SetFocus ITfThreadMgr::SetFocus method

Remarks

An application obtains a pointer to this interface by calling CoCreateInstance with CLSID_TF_ThreadMgr as demonstrated below.

A text service receives a pointer to this interface in its ITfTextInputProcessor::Activate method.

Examples

C++
HRESULT hr;
ITfThreadMgr* pThreadMgr;

hr = CoCreateInstance( CLSID_TF_ThreadMgr, NULL, CLSCTX_INPROC_SERVER, IID_ITfThreadMgr, (void**)&pThreadMgr);

Requirements

   
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

CoCreateInstance

ITfTextInputProcessor::Activate

IUnknown