Méthode ITfKeyEventSink::OnSetFocus (msctf.h)

Appelé lorsqu’un service de texte TSF reçoit ou perd le focus du clavier.

Syntaxe

HRESULT OnSetFocus(
  [in] BOOL fForeground
);

Paramètres

[in] fForeground

Si la valeur est TRUE, le service de test reçoit le focus. Sinon, le service de texte perd le focus.

Valeur retournée

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

   
Client minimal pris en charge Windows 2000 Professionnel [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows 2000 Server [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête msctf.h
DLL Msctf.dll
Composant redistribuable TSF 1.0 sur Windows 2000 Professionnel