标题:大家帮忙解决问题啊
取消只看楼主
ghethe
Rank: 1
等 级:新手上路
帖 子:22
专家分:6
注 册:2008-10-23
结帖率:87.5%
已结贴  问题点数:20 回复次数:1 
大家帮忙解决问题啊
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)

帮忙解决一下吧
搜索更多相关主题的帖子: void 鼠标 default message 
2009-09-02 09:40
ghethe
Rank: 1
等 级:新手上路
帖 子:22
专家分:6
注 册:2008-10-23
得分:0 
回复 2楼 xufen340
对,真是这样的,我大意了,谢谢
2009-09-04 16:52



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-284487-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.234078 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved