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)
求教