BOOL CtestDlg::PreTranslateMessage(MSG* pMsg)
{
    // TODO: Add your specialized code here and/or call the base class
    if((pMsg->message==WM_KEYDOWN) && (pMsg->wParam==VK_RETURN))
                return TRUE;
    return CDialog::PreTranslateMessage(pMsg);
} 
void CtestDlg::OnExit()
{
	// TODO: 在此添加命令处理程序代码
	AfxGetMainWnd()->SendMessage(WM_CLOSE);
}

相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2021-12-25
  • 2021-06-23
  • 2021-09-15
  • 2022-02-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-01-10
  • 2021-12-04
相关资源
相似解决方案