windows应用开发由浅入深(四)创建热键消息
2014-03-06 15:26
357 查看
相关API:BOOL RegisterHotKey( HWND hWnd, int id, UINT fsModifiers, UINT vk );
MSDN描述:This function defines a system-wide hot key. 定义一个系统级的热键。
相关消息:WM_HOTKEY
MSDN描述:This message is posted when the user presses a hot key registered by the
RegisterHotKey function. The message is placed at the top of the message queue associated with the thread that registered the hot key.
当用户按下热键--用RegisterHotKey()注册过的--时,会产生WM_HOTKEY消息。这个消息会放在注册这个热键的线程的消息队列的顶端。
相关消息宏:ON_WM_HOTKEY()
相关消息函数:void OnHotKey(UINT nHotKeyId, UINT nKey1, UINT nKey2);
注册热键后,当用户按下这一热键,系统产生WM_HOTKEY消息给注册热键的窗口,窗口执行ONHotKey()响应。
MSDN描述:This function defines a system-wide hot key. 定义一个系统级的热键。
相关消息:WM_HOTKEY
MSDN描述:This message is posted when the user presses a hot key registered by the
RegisterHotKey function. The message is placed at the top of the message queue associated with the thread that registered the hot key.
当用户按下热键--用RegisterHotKey()注册过的--时,会产生WM_HOTKEY消息。这个消息会放在注册这个热键的线程的消息队列的顶端。
相关消息宏:ON_WM_HOTKEY()
相关消息函数:void OnHotKey(UINT nHotKeyId, UINT nKey1, UINT nKey2);
注册热键后,当用户按下这一热键,系统产生WM_HOTKEY消息给注册热键的窗口,窗口执行ONHotKey()响应。
相关文章推荐
- 使用Squirrel创建基于Electron开发的Windows 应用安装包
- windows应用开发由浅入深(二)常用控件--滑块、标签、树形控件、列表控件
- windows应用开发由浅入深(五)关于进程和线程--获取当前进程信息
- Windows群集开发-编写微软群集服务器(MSCS)资源DLL:5)创建群集可感知应用
- windows应用开发由浅入深(三)有关不规则窗口
- windows应用开发由浅入深(一)MessageBox消息框
- windows应用开发由浅入深(一)AfxMessageBox消息框
- Sailfish应用开发入门(一)Windows 安装Sailfish,创建第一个Sailfish APP
- windows应用开发由浅入深(二)有关控件的操作
- Windows开发应用(1)如何创建应用程序项目
- [Windows通用应用开发]从代码创建StoryBoard
- windows应用开发由浅入深(二)常用控件--进度条、滚动条
- windows应用开发由浅入深(三)有关鼠标事件--设置鼠标点击测试值实现非标题栏拖动窗口
- windows应用开发由浅入深(三)利用注册表将程序启动时窗口位置设置为上次关闭的位置
- 开发 Windows 8 Bing地图应用(3)
- Windows下Core Audio APIS 音频应用开发(四)
- iOS应用开发入门指南 --- 方法和消息
- Windows 8 应用商店应用开发 之 轮廓样式
- Windows 8应用开发书籍汇总