我做了一个对话框程序
当点击按键2时。整个程序全部退出。请哪位大侠给个列子哦。请问下面***处的代码应该怎么写哦!
BOOL CYaluDlg::PreTranslateMessage(MSG* pMsg)
{
CCollectDate dlg;
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_CHAR)
{
switch (pMsg->wParam)
{
case 0x2A:
dlg.DoModal();
break;
case 0x61:
**************
}
}
return CDialog::PreTranslateMessage(pMsg);}
PostMessage(WM_CLOSE, 0, 0);
对话框程序啊,那就用:
EndDialog(0);