ck125s

ck125s

V2EX member #262369, joined on 2017-10-25 15:38:47 +08:00
ck125s's recent replies
已解决,感谢大家。

结论是这样的,希望能帮助有需要的人:

Interop.UIAutomation 或 C++ COM UIA 的原生方式,无法让传统 Win32 Edit 控件支持 TextPattern ,因为底层的 MSAA/IAccessible 本身并不提供足够的文本访问接口,UIA 也不会自动合成该模式。只有 System.Windows.Automation 这种托管客户端,在其背后的 UIAutomationClientsideProviders.dll 中,才能通过与 MSAA 进行通信,将 Edit 控件“模拟”成支持 TextPattern 的 Document 类型。这个过程本质上是依赖客户端增强( Proxy ),而并非 Edit 控件原生能力。
@dandycheung 好的 谢谢老哥
@dereklu4 是的,方便加你微信咨询吗
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5546 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 01:16 · PVG 09:16 · LAX 18:16 · JFK 21:16
♥ Do have faith in what you're doing.