Application doesn't detect change of language when lost focus

537 views Asked by At

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?

1

There are 1 answers

0
Eric Brown On BEST ANSWER

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.