thanks

解决方案 »

  1.   

    刷新,CTRL + ENTER 如何设置
      

  2.   

    RegisterHotKey(m_hWnd,0Xa002,MOD_CTRL,VK_RETURN);BOOL CDlg::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 CDlg::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);
    }