Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要能够在将所有按键事件传递给 Word 文档之前获取它们。我想对键进行特殊处理,根据插件所处的模式,这些键可能会或可能不会发送到 Word 文档。我只想要属于文档的按键事件,我不想为弹出窗口或其他对话框挂钩事件。
我读过一些关于智能标签的东西,但不知道它们是如何工作的。
如果我必须对文档窗口进行子类化,我怎样才能获得窗口句柄?
使用 SetWindowsHookEx( WH_KEYBOARD_LL, ... 收听击键。