ITfThreadMgr2 interface (msctf.h)

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

Inheritance

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

Methods

The ITfThreadMgr2 interface has these methods.

 
ITfThreadMgr2::Activate

Activates TSF for the calling thread.
ITfThreadMgr2::ActivateEx

Initializes and activates TSF for the calling thread with a flag that specifies how TSF is activated.
ITfThreadMgr2::CreateDocumentMgr

Creates a document manager object.
ITfThreadMgr2::Deactivate

Deactivates TSF for the calling thread.
ITfThreadMgr2::EnumDocumentMgrs

Returns an enumerator for all the document managers within the calling thread.
ITfThreadMgr2::EnumFunctionProviders

Obtains an enumerator for all of the function providers registered for the calling thread.
ITfThreadMgr2::GetActiveFlags

Gets the active flags of the calling thread.
ITfThreadMgr2::GetFocus

Returns the document manager that has the input focus.
ITfThreadMgr2::GetFunctionProvider

Obtains the specified function provider object.
ITfThreadMgr2::GetGlobalCompartment

Obtains the global compartment manager object.
ITfThreadMgr2::IsThreadFocus

Determines if the calling thread has the TSF input focus.
ITfThreadMgr2::ResumeKeystrokeHandling

Resumes suspended keystroke handling.
ITfThreadMgr2::SetFocus

Sets the input focus to the specified document manager.
ITfThreadMgr2::SuspendKeystrokeHandling

Suspends handling keystrokes.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header msctf.h

See also

IUnknown