//屏蔽回车和ESC退出
BOOL CTitleBarColorDlg::PreTranslateMessage(MSG* pMsg)
{
 // TODO: Add your specialized code here and/or call the base class
 if(pMsg->message == WM_KEYDOWN){
        switch(pMsg->wParam){
  case VK_RETURN://截获回车
   return TRUE;
        case VK_ESCAPE://截获ESC
   return TRUE;
   break;
  }
 }
 return CDialog::PreTranslateMessage(pMsg);
}

相关文章:

  • 2021-06-14
  • 2022-12-23
  • 2021-11-09
  • 2021-09-11
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-31
  • 2021-09-02
  • 2021-04-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案