对话框类里怎么获取View类指针?我试了
CMainFrame *pMainFrame = (CMaimFrame *)AfxGetApp()->m_pMainWnd;
CTest1View *pView = (CTest1View *)pMainFrame->GetActiveView();
可是出错说不认识CMainFrame,我include了头文件还是不行。奇怪了。恳请高人指点。非常感谢
CMainFrame *pMainFrame = (CMaimFrame *)AfxGetApp()->m_pMainWnd;
CTest1View *pView = (CTest1View *)pMainFrame->GetActiveView();
可是出错说不认识CMainFrame,我include了头文件还是不行。奇怪了。恳请高人指点。非常感谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货