ITfKeyEventSink::OnSetFocus method (msctf.h)

Called when a TSF text service receives or loses the keyboard focus.

Syntax

HRESULT OnSetFocus(
  [in] BOOL fForeground
);

Parameters

[in] fForeground

If TRUE, the test service receives the focus. Otherwise the text service loses the focus.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header msctf.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional