Programming - cpueblo.com

Dialog 박스에서 엔터키 입력 막기 - OnOK()


글쓴이 : 유광희 날짜 : 2002-05-13 (월) 16:43 조회 : 15831
1. PreTranslateMessage 에 추가하기 BOOL CTestDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class // TODO: Add your specialized code here and/or call the base class if(pMsg->message == WM_KEYDOWN && pMsg->wParam == 13) pMsg->wParam = 1; return CDialog::PreTranslateMessage(pMsg); } 2.Dlg 헤더에서 아래처럼 virtual 선언 virtual void OnOK(){}