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);
}

+ Recent posts