반응형
Step1) Class VIew

Step2) ~~.dlg 클릭

Step3) 해당 모양 클릭

Step4) PreTranslateMessage 함수생성

Step5) 함수 입력
BOOL CDbfReaderDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN)
{
OnBnClickedBtnRun();
return TRUE;
}
return CDialogEx::PreTranslateMessage(pMsg);
}
반응형
'MFC' 카테고리의 다른 글
| [MFC] Resource View 오류 해결 ( Opened in another editor, 다른 편집기에서 열려 있습니다.) (0) | 2020.08.14 |
|---|---|
| [MFC] char/wchar/TCHAR/CString 비교 분석 (0) | 2020.07.15 |
| [MFC] 현재 실행파일(.exe)의 위치 반환 (0) | 2020.07.06 |
| [MFC] CString에서 특정한 문자 찾기 Find함수 (0) | 2020.07.02 |
| [MFC] 자주 쓰이는 형변환 (0) | 2020.06.30 |