在C ++中使用ctrl,shift和alt [英] To use ctrl, shift and alt in C++

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

问题描述

您好!

如何使用 CTRL Shift Alt 键在 c / c ++ 计划中



我尝试过:



我看到很多来自不同网站的代码但没有用。请帮帮我。

我正在使用visual studio。

谢谢

解决方案

< blockquote>首先,你需要学习键盘周围的功能。 键盘输入参考是一个很好的起点。



通常这些键用于触发命令。像复制一样使用Ctrl + C。这是您在应用程序中编写此类处理函数并将其与键连接的任务。这里有一篇关于所谓热键。在RegisterHotKey网站上有一些示例代码如何在C ++中使用它。


Hello!
How to use CTRL, Shift and Alt keys in c/c++ program

What I have tried:

I saw many codes from different websites but did not work. Please help me.
I'm using visual studio.
Thanks

At first you need to learn the function around the keyboard. Keyboard Input Reference is a good starting point.

Normally these keys are used to trigger commands. Like "copy" with "Ctrl+C". That is your task in your app to write such handler functions and connect them with the keys. Here is some article about the so called Hot keys. In RegisterHotKey site is some sample code how to use it in C++.


这篇关于在C ++中使用ctrl,shift和alt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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