BOOL CWelcomeDlg::PreTranslateMessage(MSG* pMsg) //Called to filter messages before they are dispatched
{
    // TODO: Add your specialized code here and/or call the base class
    if(pMsg->message == WM_KEYDOWN && pMsg->wParam == 27)
    {
        CString s;
        s.Format("The wParam= %d The message = %d", pMsg->wParam, pMsg->message);
        MessageBox(s);
        return NULL;
    }
    return CDialog::PreTranslateMessage(pMsg);
}
在消息调用之前的函数

相关文章:

  • 2022-12-23
  • 2021-10-13
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-07-15
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案