输入法开发——<三>接口,系统,msctf.h
天杀的官方文档,系统接口和用户接口写一篇文章里,不过不要担心,屎山我来啃
你们看这个文章就好了,别忘了赞一个。本篇主要是 msctf.h 中所定义的接口。
C/C++ 并不支持 Interface. 在 Windows 中的实现方法类似 C callback 将方法的指针安装到系统。
系统接口是由文本服务或应用程序使用的
msctf.h 头文件

IEnumITfCompositionView
以枚举 ITfCompositionView 对象的方法获得 ITfCompositionView 对象
以下 IEnum 描述都是相同的,枚举获取相应对象用的
IEnumTfContexts
IEnumTfDisplayAttributeInfo
IEnumTfDocumentMgrs
IEnumTfFunctionProviders
IEnumTfInputProcessorProfiles
IEnumTfLanguageProfiles
IEnumTfProperties
IEnumTfPropertyValue
IEnumTfRanges
IEnumTfUIElements

ITextStoreACPServices
不知道干啥的
ITfClientId
用于获取 ClientId
ITfCompartment
用于在 TSF Compartment 中 获取/储存 信息
ITfCompartmentMgr
可以获取一个枚举器,该枚举器包含 CompartmentMgr 的 Compartment 的 GUID,获取/清除 ITfCompartment 对象
ITfComposition
提供一个方法使文本处于未提交但可以被 应用读取、修改特效、不过依然可以被 IME 修改的状态

用 ITfContextComposition 获取
ITfCompositionView
应用使用这个接口读取 ITfComposition 中的文本
上面的 mathtype 就是用这个方法读取 mat 后得到的
ITfConfigureSystemKeystrokeFeed
禁用 键击 处理
ITfContext
编辑文本的重要接口之一
ITfContextComposition
用于获取 ITfComposition
ITfContextOwnerCompositionServices
上下文的所有者可以用这个操控文本服务创建的 Composition
ITfContextView
捕获文本所在屏幕的位置、窗口等
ITfDisplayAttributeMgr
获取和枚举显示属性
通过 ITfDisplayAttributeInfo 接口以访问单个显示属性
ITfDocumentMgr
用于创建、控制上 ITfContext 对象
ITfEditRecord
ITfTextEditSink 接口使用这个接口确认 ITfEditSession 工作时修改的内容
ITfInputProcessorProfileMgr
用于管理输入法配置
ITfInputProcessorProfiles
用于管理语言、键盘布局
ITfInputProcessorProfilesEx
ITfInputProcessorProfiles 的拓展
ITfKeystrokeMgr
用来与键盘管理器 ITfKeyEventSink 交互
ITfMessagePump
用于应用从消息队列中获取消息
ITfMouseTracker
用于管理 ITfMouseSink
ITfProperty
修改属性值
ITfQueryEmbedded
确定上下文是否可以接受嵌入对象
ITfRangeACP
用于基于文字的应用访问、控制 ITfRange 对象
ITfRangeBackup
拷贝、备份ITfRange 对象
ITfReadOnlyProperty
获取属性
ITfSource
安装、卸载多个 Sink 接收器
ITfSourceSingle
安装、卸载单个 Sink 接收器