Windows global hook for text box focus

I'm building a virtual keyboard for Windows (can't use the default keyboard, I need to block some keys and add custom ones) and I planned on using global hooks in order to display/hide the keyboard when needed.

I already have a simulated keyboard in WPF and I use the GotFocus/LostFocus methods for making it appear/disappear. But the problem is the keyboard should also work with third-party apps (ie Reader) so I need it to work without additional code. I looked at HCBT_SETFOCUS but it only gives me the window that has focus, not the UI element.

Is there a global event fired when a text box gains/loses focus?

Thanks!

链接地址: http://www.djcxy.com/p/61738.html

上一篇: 我的MouseHook阻止其他应用程序的挂钩通知

下一篇: 用于文本框焦点的Windows全局钩子