如何将虚拟键码转换为字符码?

2022-01-12 00:00:00 visual-c++ mfc

onkeydown() 处理程序中,我得到 219 作为 '[';但是,'[' 的实际字符值是 91.有没有办法映射这两个?

In the onkeydown() handler I am getting 219 as the keycode for '['; however, the actual character value of '[' is 91. Is there any way to map these two?

推荐答案

如果您使用的是 Windows,您应该查看 ToUnicodeEx 函数.

If you are using Windows, you should look into the ToUnicodeEx function.

相关文章