程序A对程序B的某窗体发送定义的按键:如Alt-E/Alt-Q等
使用PostMessage(hwnd, WM_SYSKEYDOWN, wParam, lParam);
后两个参数如何设定?
使用PostMessage(hwnd, WM_SYSKEYDOWN, wParam, lParam);
后两个参数如何设定?
解决方案 »
- 请教这句sql怎么写?谢谢各位大侠!!!
- 从memo取出一段字符串,每行后都跟着“#$A#$A#$A#$A#$D#$A”,如何去掉,只有“#$D#$A”呢
- 请问如何把html转化成txt格式
- 问一个比较难的问题:怎样用程序把网站上的一个文件拷贝过来?
- 请问抓屏幕键盘 在OnKeyDown 的key是多少。。。
- 数据库中如何进行日期查询
- 关于怎么在程序中导入sql server数据库?
- 为什么Assigned(Form2) 不是Nil?
- 如何提高ADO查询 以及 UPDAT 的性能?
- 请问各位那里有供下载的用DELPHI开发的数据库系统实例?,thank you!!!
- 我的软件会自动退出,我们找不到合适的解决方法!请大家指导!
- 急救,在delphi中如何判断打印机是否安装。
Specifies the virtual-key code of the key being pressed.
lParam
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. Value Description
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 original equipment manufacturer (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 1 if the ALT key is down while the key is pressed; it is 0 if the WM_SYSKEYDOWN message is posted to the active window because no window has the keyboard focus.
30 Specifies the previous key state. The value is 1 if the key is down before the message is sent, or it is 0 if the key is up.
31 Specifies the transition state. The value is always 0 for a WM_SYSKEYDOWN message.