真的给分吗?
if (true)
i will tell you how to do

解决方案 »

  1.   

    在程序中注册热键,并进行处理即可。
    好象是RegistHotKey吧
      

  2.   

    注册(使用)热键!
    ctrl+t+e+r+m
      

  3.   

    热键只能是Ctrl+一个char吧!
    重载函数BOOL CXXXDlg::PreTranslateMessage(MSG* pMsg) 
    {
    // TODO: Add your specialized code here and/or call the base class
    static int key = -1;
    if( pMsg->message == WM_KEYDOWN )
    {
    if( pMsg->wParam == VK_CONTROL )
    key = 1;
    else if( pMsg->wParam != 0x41 &&
     pMsg->wParam != 0x42 &&
     pMsg->wParam != 0x43 )
    key = 0;
    }
    if( pMsg->message == WM_KEYUP )
    {
    if( pMsg->wParam == VK_CONTROL )
    key = 0;
    else if( pMsg->wParam == 0x41 && key == 1 )//A
    key = 2;
    else if( pMsg->wParam == 0x42 && key == 2 )//B
    key = 3;
    else if( pMsg->wParam == 0x43 && key == 3 )//C
    AfxMessageBox( "Ctrl+A+B+C be pressed!" );
    else
    key = 0;
    }
    return CDialog::PreTranslateMessage(pMsg);
    }