C ++中的组合键 [英] key combination in c++

查看:148
本文介绍了C ++中的组合键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我如何在c ++中检测按键组合?

hello,
how i can detect a key combination in c++?

例如:ctrl +&m .....

for example: ctrl + m .....

如果您能给我一个例子,将非常有帮助.

if you can give me an example it will be very helpful.

thanx.

推荐答案

例如,一旦检测到m,就可以使用GetAsynchKeyState查看Control是否关闭.被按下.

You get use GetAsynchKeyState to see if Control is down, once you detect that the m, for example, is pressed.


这篇关于C ++中的组合键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆