ITfThreadMgr2::SetFocus method
Sets the input focus to the specified document manager.
Syntax
HRESULT SetFocus(
[in] ITfDocumentMgr *pdimFocus
);
Parameters
- pdimFocus [in]
-
Pointer to a ITfDocumentMgr interface that receives the input focus. This parameter cannot be NULL.
Return value
This method can return one of these values.
| Value | Description |
|---|---|
|
The method was successful. |
|
pdimFocus is invalid. |
Remarks
The application must call this method when the document window receives the input focus. If the application associates a window with a document manager using ITfThreadMgr::AssociateFocus, the TSF manager calls this method for the application.
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