Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Sets the input focus to the specified document manager.
Syntax
HRESULT SetFocus(
[in] ITfDocumentMgr *pdimFocus
);
Parameters
[in] pdimFocus
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
| 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 |