但是为什么从第二个对话框退出显示第一个个对话框再退出后中是报一下的错误assertuib failed
file wincore.cpp line 1043.请教各位大侠,因为我自己对evc不是很懂。所以希望大家能帮我,在线等答案哦!
一个的按键响应事件是
BOOL CYDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_KEYDOWN)
{
CCy dlg;
switch(pMsg->wParam)
{
case VK_F1:
dlg.DoModal();
break;
//DestroyWindow();
case VK_ESCAPE:
PostMessage(WM_CLOSE, 0, 0);
}
}
return CDialog::PreTranslateMessage(pMsg);
}
另一个的按键响应事件是这个
BOOL CCy::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_KEYDOWN)
{
CYDlg dlg;
switch(pMsg->wParam)
{
case VK_ESCAPE:
dlg.DoModal();