WORK/Sotfware
PreTranslateMessage / DoModal Error
KANG Stroy
2016. 1. 27. 15:01
728x90
728x90
For information on how your can cause an assertion failure, see the Visual C++ documentation on asserts.
Fail : wincore.cpp
Line : 886
위와 같은 에러에 대해서는
다음과 같이 변경 하면 오류를 해결 할 수 있을거 같내요..
WM_KEYDOWN 명령어를 실행 후 복귀 하였을때 생기는 에러 였습니다.
여기서 return TRUE 를 빼 먹으면서 문제가 발생 되었내요..
아래의 return TRUE; 확인 후 없다면 입력 하시기 바랍니다.
또한 OnOk 부분이 동작 하지 않도록 수정이 필요 합니다.
BOOL xxxxxxx::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
CLossTable cDlg;
if( pMsg->message == WM_KEYDOWN )
{
if(cDlg.DoModal() == IDOK)
{
}
return TRUE;
}
return xxxxxxx::PreTranslateMessage(pMsg);
}
728x90