ITfThreadMgr2 interface
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.
Members
The ITfThreadMgr2 interface inherits from the IUnknown interface. ITfThreadMgr2 also has these types of members:
Methods
The ITfThreadMgr2 interface has these methods.
| Method | Description |
|---|---|
| Activate |
Activates TSF for the calling thread. |
| ActivateEx |
Initializes and activates TSF for the calling thread with a flag that specifies how TSF is activated. |
| CreateDocumentMgr |
Creates a document manager object. |
| Deactivate |
Deactivates TSF for the calling thread. |
| EnumDocumentMgrs |
Returns an enumerator for all the document managers within the calling thread. |
| EnumFunctionProviders |
Obtains an enumerator for all of the function providers registered for the calling thread. |
| GetActiveFlags |
Gets the active flags of the calling thread. |
| GetFocus |
Returns the document manager that has the input focus. |
| GetFunctionProvider |
Obtains the specified function provider object. |
| GetGlobalCompartment |
Obtains the global compartment manager object. |
| IsThreadFocus |
Determines if the calling thread has the TSF input focus. |
| ResumeKeystrokeHandling |
Resumes suspended keystroke handling. |
| SetFocus |
Sets the input focus to the specified document manager. |
| SuspendKeystrokeHandling |
Suspends handling keystrokes. |
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
See also