ITfThreadMgr interface (msctf.h)

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.

Inheritance

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

Methods

The ITfThreadMgr interface has these methods.

 
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


HRESULT hr;
ITfThreadMgr* pThreadMgr;

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

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

CoCreateInstance

ITfTextInputProcessor::Activate

IUnknown