如何用CSplitterWnd分割3个窗口

怎么用CSplitterWnd分割3个窗口?
怎么用CSplitterWnd分割3个窗口,左边上下2个,右边1个。我用以下代码不行啊?
if (!m_wndSpMain.CreateStatic(this, 1, 2))
{
TRACE0("Failed to create splitter window\n");
return FALSE;
}


m_wndSpSubMain=(CSplitterWnd*)m_wndSpMain.CreateView(0, 0, RUNTIME_CLASS(CSplitterWnd),
CSize(200, 10), pContext);



if (!m_wndSpSubMain->CreateStatic(this, 2, 1))
{
TRACE0("Failed to create splitter window\n");
return FALSE;
}

MyTree=(CLzlfTreeView *)m_wndSpSubMain->CreateView(0, 0, RUNTIME_CLASS(CLzlfTreeView ),
CSize(200, 10), pContext);
if (!MyTree)
{
TRACE0("Failed to create left pane view\n");
return FALSE;
}
MyTree=(CLzlfTreeView *)m_wndSpSubMain->GetPane(0,0); 


ShareMyTree=(CLzlfTreeView *)m_wndSpSubMain->CreateView(1, 0, RUNTIME_CLASS(CLzlfTreeView ),
CSize(200, 10), pContext);
if (!MyTree)
{
TRACE0("Failed to create left pane view\n");
return FALSE;
}
ShareMyTree=(CLzlfTreeView *)m_wndSpSubMain->GetPane(1,0); 
MyList=(CLzLfClientView*)m_wndSpMain.CreateView(0, 1, 
RUNTIME_CLASS(CLzLfClientView), CSize(100,100), pContext);
if (!MyList)
{
TRACE0("Failed to create right pane frame\n");
return FALSE;
}

MyList=(CLzLfClientView*)m_wndSpMain.GetPane(0,1);




------解决方案--------------------
您好
我是本版版主
此帖已多日无人关注
请您及时结帖
如您认为问题没有解决可按无满意结帖处理
另外本版设置了疑难问题汇总帖
并已在版面置顶
相关规定其帖子中有说明
您可以根据规定提交您帖子的链接
如您目前不想结帖只需回帖说明
我们会删除此结帖通知

见此回复三日内无回应
我们将强制结帖
相关规定详见界面界面版关于版主结帖工作的具体办法
------解决方案--------------------
下面的例子,两个CSplitterWnd分割3个窗口,左边1个,右边上下2个
注意在CMainFrame的OnCreateClient加代码。

 BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
 {
  // TODO: Add your specialized code here and/or call the base class
 
  m_wndSplitter0.CreateStatic(this, 1, 2);
  m_wndSplitter0.CreateView(0, 0, RUNTIME_CLASS(CTracer_demoView), CSize(100,100), pContext);
  m_wndSplitter1.CreateStatic(&m_wndSplitter0, 2, 1, WS_CHILD
------解决方案--------------------
WS_VISIBLE, m_wndSplitter0.IdFromRowCol(0,1));
 
  m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CCmdInputView), CSize(100,100), pContext);
  m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CInfoOutView), CSize(100,400), pContext);
 
  return TRUE;
 }