请教高手!如何在单文档视图结构中创建3个视图
如何在单文档视图结构中创建3个视图
我的代码如下:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if (!m_wndSplitter.CreateStatic(this,2,2)||
!m_wndSplitter.CreateView (0,0,RUNTIME_CLASS(CChatListView),CSize(0,200),pContext)||
!m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CDrawView),CSize(0,200),pContext)||
!m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CChatView),CSize(100,200),pContext))
return false;
else
return true;
}
编译没有错误
但运行有错误