用RegisterHotKey函数注册一个热键的问题 如果我想注册一个ctrl+f1的热键应该怎么做 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 RegisterHotKey(m_hWnd,0Xa002,MOD_CONTROL,VK_F1); ::SetFocus(m_hWnd);***************************************************************BOOL PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if (pMsg->message==WM_HOTKEY && pMsg->wParam==0Xa002) { AfxMessageBox("My MessageBox!"); } return CDialog::PreTranslateMessage(pMsg);}LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { // TODO: Add your specialized code here and/or call the base class if(message == WM_CLOSE) { ::UnregisterHotKey(m_hWnd,0Xa002); } return CDialog::WindowProc(message, wParam, lParam);} 200分再开一帖,大家来说说全局变量的优缺点 InstallShield10.5的MSI工程如何使用脚本 怎么判断输出的是音响还是耳麦 为什么vs2005不能加载以前的C++程序,提示出错是#include <iostream.h>不能加载? 请问怎样获得邮箱里各个邮件的信息啊。我想能获得新邮件的个数。。。谢了。。。急 关于自定义的IIS筛选器???没分了,先给这些,解决后再加!!! 求 vc中操作 msmq的例子 刚装了一个VC2005测试版 高手,请指点!感激不尽! 抓取命令行程序参数问题 ado遇到的问题 请教CStationBar的问题
::SetFocus(m_hWnd);
***************************************************************BOOL PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message==WM_HOTKEY && pMsg->wParam==0Xa002)
{
AfxMessageBox("My MessageBox!");
}
return CDialog::PreTranslateMessage(pMsg);
}LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
if(message == WM_CLOSE)
{
::UnregisterHotKey(m_hWnd,0Xa002);
}
return CDialog::WindowProc(message, wParam, lParam);
}