Enter Key 썸네일형 리스트형 [MFC] Enter Key 종료 방지 1. 원하는 다이얼로그에서 재정의를 클릭 2. PreTranslateMessage를 재정의한다고 하고 3. 원하는 메시지를 먹어버리면 됨... 여기서는 엔터키를 그냥 삼켰음. BOOL CSocketTestDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if(pMsg->message == WM_KEYDOWN){ // 엔터키가 눌렸다면 if(pMsg->wParam == VK_RETURN ){ return TRUE; } } return CDialog::PreTranslateMessage(pMsg); } [출처] mfc dialog 엔터키 종료 방지|작성자 Hyunnim 더보기 이전 1 다음