简体   繁体   中英

Application doesn't detect change of language when lost focus

I've implemented class that inherits ITfLanguageProfileNotifySink interface. It's working, I can get event when language changes, but it's only when my app is focused.

What should I do to detect language changes in my app when it's not focused?

ITfLanguageProfileNotifySink is the interface you want, but you need to implement it in your text service DLL, rather than in a core application.

You will need to implement a text service DLL in any case if you want to interact with the text in a document, as TSF interfaces don't have proxies & stubs, and can't run cross-process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM