组合键输入 [英] Key combination input

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

问题描述

我正在VC ++ 6.0中的应用程序中编写MFC.我通过调用HideApplication()来隐藏应用程序.现在,我希望每当用户按下特定的组合键(例如Ctrl + Shift + L)时,都应调用一个处理该键的函数.我不想使用计时器.

I am writing an MFC in application in VC++ 6.0. I made the aplication hidden by calling HideApplication(). Now I want that whenever user presses specfic key combination like Ctrl+Shift+L, a function should be called which handles that key. I donot want to use timer.

推荐答案

您可以为此注册一个全局热键.

http://msdn.microsoft.com/en-us/library/s2c51t2b% 28VS.71%29.aspx [ ^ ]

您可以使用的示例类:
键盘(热键)自定义类 [
You could register a global hotkey for that.

http://msdn.microsoft.com/en-us/library/s2c51t2b%28VS.71%29.aspx[^]

An example class you could use:
Keyboard (hotkey) customization class[^]

Good luck!


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

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