帮忙看看BOOL CResGridView::PreTranslateMessage(MSG* pMsg)中的错误
BOOL CResView::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if ( pMsg->message == WM_COMMAND )
{
if ( pMsg->wParam == ID_POPUP_ADD)
{
CDlg Dlg;
Dlg.DoModal();
}
}
return CView::PreTranslateMessage(pMsg);
}
点了弹出菜单后,弹出对话框.点击对话框上的确定或者取消.就出错了.调试过程中发现是return 行出错.请各位高手指点一下.