摘要:
注册快捷键 函数BOOL WINAPI RegisterHotKey( __in_optHWND hWnd, __inint id, __inUINT fsModifiers, __inUINT vk);The keys that must be pressed in combination with the key specified by the uVirtKey parameter in order to generate the WM_HOTKEY message. The fsModifiers parameter can be a combination of the follow 阅读全文
摘要:
在VC/MFC编程中,可以为程序定义自己的全局快捷键,如不管在任何地方按下Ctrl+Alt+Z即可显示QQ窗口。1、注册快捷键在初始化函数,如OnInitDialog() 注册快捷键,代码如下:BOOL CDlgCloseProSetup::OnInitDialog() {CDialog::OnInitDialog();// TODO: Add extra initialization here::RegisterHotKey(m_hWnd,199,MOD_CONTROL,'Z');return TRUE; // return TRUE unless you set the f 阅读全文