大家帮忙解决问题啊
void CEx_SDIView::OnLButtonDblClk(UINT nFlags, CPoint point){
// TODO: Add your message handler code here and/or call default
CMainFrame * pFrame=(CMainFrame*)AfxGetApp()->m_pMainWnd;
CStatusBar * pStatus=&pFrame->m_wndStatusBar;
CString str;
if(pFrame->m_bIsTest)
str.Format("你在(%d,%d)处双击鼠标",point.x,point.y);
else
str.Empty();
if (pStatus)
pStatus->SetPaneText(1,str);
CView::OnLButtonDblClk(nFlags, point);
}
最后运行时出现这样的错误:
F:\ghethe\Ex_SDI\Ex_SDIView.cpp(108) : error C2065: 'CMainFrame' : undeclared identifier
F:\ghethe\Ex_SDI\Ex_SDIView.cpp(108) : error C2065: 'pFrame' : undeclared identifier
F:\ghethe\Ex_SDI\Ex_SDIView.cpp(108) : error C2059: syntax error : ')'
F:\ghethe\Ex_SDI\Ex_SDIView.cpp(109) : error C2227: left of '->m_wndStatusBar' must point to class/struct/union
F:\ghethe\Ex_SDI\Ex_SDIView.cpp(111) : error C2227: left of '->m_bIsTest' must point to class/struct/union
Error executing cl.exe.
Ex_SDI.exe - 5 error(s), 0 warning(s)
帮忙解决一下吧