ITfThreadMgrEventSink::OnSetFocus method (msctf.h)
Called when a document view receives or loses the focus
Syntax
HRESULT OnSetFocus(
[in] ITfDocumentMgr *pdimFocus,
[in] ITfDocumentMgr *pdimPrevFocus
);
Parameters
[in] pdimFocus
Pointer to the document manager receiving the input focus. If no document is receiving the focus, this will be NULL.
[in] pdimPrevFocus
Pointer to the document manager that previously had the input focus. If no document had the focus, this will be NULL.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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 |
DLL | Msctf.dll |
Redistributable | TSF 1.0 on Windows 2000 Professional |