我想写个软键盘的按键
进行消息转换的时候
比如有一个按向下按钮的消息
对应的两个参数这样赋值:
message = WM_KEYDOWN;
wParam = VK_DOWN;
而且还要对另一个参数 lParam = 22020097 才会有响应
那参数lParam的值怎么样才可以得到,
有没有什么公式 或 与前面的的两个的参数有个什么的对应关系可以在系统中查的
该怎么样用程序来得到呢?
进行消息转换的时候
比如有一个按向下按钮的消息
对应的两个参数这样赋值:
message = WM_KEYDOWN;
wParam = VK_DOWN;
而且还要对另一个参数 lParam = 22020097 才会有响应
那参数lParam的值怎么样才可以得到,
有没有什么公式 或 与前面的的两个的参数有个什么的对应关系可以在系统中查的
该怎么样用程序来得到呢?
解决方案 »
- vs2005中ctrl+shift+F进行“在文件中查找”,有时候无效?
- 编程方式实现分区格式的fat到ntfs的转换
- 手动线程放弃CPU的API
- 请教下VC++如何获得子对话框的指针?
- 在英文版XP下如何让静态文本框上的“μΩ”显示不乱码?
- 我用CFtpConnection的GetFile方法下载一个文件,遇到了一个很奇怪的问题?
- 奇怪的现象(关于VC中调用hcm帮助文件),请教!!
- exe使用自己编写的编写的dll 编译链接都正常了,但是一运行或调试就崩溃。崩溃时还未进入dll的DllMain函数
- 《深入浅出MFC 2》里消息映射中的数组能这样定义吗?
- extern的问题
- 消息的问题?
- list控件内容打印
Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table.
0-15
Specifies the repeat count for the current message. The value is the number of times the keystroke is autorepeated as a result of the user holding down the key. If the keystroke is held long enough, multiple messages are sent. However, the repeat count is not cumulative.
16-23
Specifies the scan code. The value depends on the OEM.
24
Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101- or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0.
25-28
Reserved; do not use.
29
Specifies the context code. The value is always 0 for a WM_KEYDOWN message.
30
Specifies the previous key state. The value is 1 if the key is down before the message is sent, or it is zero if the key is up.
31
Specifies the transition state. The value is always zero for a WM_KEYDOWN message.
按上面说的就是只有16-23 要写,其它位多数情况下都是一样的.扫描码怎么得到啊??是不是就是问题中说的wParam这个参数??