CRect cr;
GetClientRect(&cr);
CSize paneSize(cr.Width()/2,cr.Height()/2);
m_wndSplitter.CreateStatic(this,2,2);m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CMySplitter),paneSize,pContext);
m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CMySplitter),paneSize,pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CMySplitter),paneSize,pContext);
return true;在MianFrm.h中添加了CSplitterWnd m_wndSplitter;
创建了消息映射。可编议事总显示
D:\workplaces\test\MainFrm.cpp(117) : error C2653: 'CMySplitter' : is not a class or namespace name
D:\workplaces\test\MainFrm.cpp(117) : error C2065: 'classCMySplitter' : undeclared identifier
D:\workplaces\test\MainFrm.cpp(118) : error C2653: 'CMySplitter' : is not a class or namespace name
D:\workplaces\test\MainFrm.cpp(119) : error C2653: 'CMySplitter' : is not a class or namespace name
Error executing cl.exe.test.exe - 4 error(s), 0 warning(s)
求教
GetClientRect(&cr);
CSize paneSize(cr.Width()/2,cr.Height()/2);
m_wndSplitter.CreateStatic(this,2,2);m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CMySplitter),paneSize,pContext);
m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CMySplitter),paneSize,pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CMySplitter),paneSize,pContext);
return true;在MianFrm.h中添加了CSplitterWnd m_wndSplitter;
创建了消息映射。可编议事总显示
D:\workplaces\test\MainFrm.cpp(117) : error C2653: 'CMySplitter' : is not a class or namespace name
D:\workplaces\test\MainFrm.cpp(117) : error C2065: 'classCMySplitter' : undeclared identifier
D:\workplaces\test\MainFrm.cpp(118) : error C2653: 'CMySplitter' : is not a class or namespace name
D:\workplaces\test\MainFrm.cpp(119) : error C2653: 'CMySplitter' : is not a class or namespace name
Error executing cl.exe.test.exe - 4 error(s), 0 warning(s)
求教
解决方案 »
- CDialogBar VC6 VC2010
- MFC里的^是什么意思?
- 如何第一时间得到菜单的响应消息(在线等,分数不够可以加)
- 其它程序发出的SendMessage(hWnd,WM_SHOWDATA,0,0)是不是只能由目的程序的CMainFrame类处理?
- c++ 能不能访问360云盘
- 800分求教Gina,请做过的人进来看看,急!!!!!!!!!!!!!!!!!!
- 为什么每次添加菜单项的ID值都默认为0?
- kevin_qing,问一些小问题?
- 服务器主动关闭socket后, 客户端send函数阻塞并且socket状态为CLOSE_WAIT
- 如何用Dialog代替后面的小窗(白框+灰色地带)
- COM報錯Run-Time Check Failure,爲什麽?
- CDHtmlDialog::OnBeforeNavigate为什么被调用好多次?
#include "MySplitter.h"
Generating Code...
Error executing cl.exe.test.exe - 1 error(s), 0 warning(s)
好好看看 ,应该可以找到