简体   繁体   中英

ITfRange through text services framework does not honour shiftStart shiftEnd with many applications

I am implementing a text service on windows XP, using microsoft text services framework. I use ITfRange obtained through selection. With MSOffice apps as front end, the ITfRange->shiftStart interface behaves correctly. But when using with many other applications like libreoffice, google chrome, firefox etc. the ShiftStart , does not shift the start point of selection nor does ShiftEnd shift the end point of selection. What could be going wrong.

It's entirely possible that the applications you mention do not actually implement Text Services Framework. If an application doesn't implement Text Services Framework, then a default implementation takes over - this is the " transitory context " that I describe in my blog. In particular, you are not allowed to manipulate the selection in a transitory context (because you're not actually talking to the application).

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