求指教:
  我刚开始学用C++建立一个应用程序。最近在看用vc6.0建立一个应用程序的代码。然后老师要求我们在代码的基础上将窗口分割成左右两部分,而且右边的窗口要分成“田字形”。这是一个多文档程序来的,基本的分成左右两部分代码已经实现了,但是右边部分没有分成“田”字形,当然,这就是我要修改的地方了。我找到那个进行分割窗口的代码是在类CChildFrame中的函数——OnCreateClient(LPCREATESTRUCT lpcs,CCreateContext *pContext),然后试了很多遍,都没办法实现,下面是具体代码(我修改后的)。我想问——为什么各个窗口的CSize()都设到一样了,还是没有办法实现“田”字的分割,而且我也把不同的窗口都关联到不同的视图上了。size()中的参数究竟代表什么意思。还有,如果在实现“田”字分割的基础上,想要固定分割条,又该如何实现???
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)  
{
// TODO: Add your specialized code here and/or call the base classBOOL bSuccess;
CSize size(175, 0); //列宽可以小,但不能过大,不能超过view的宽度
if (!(bSuccess = m_wndSplitter.CreateStatic(this, 1, 2, WS_CHILD|WS_VISIBLE, AFX_IDW_PANE_FIRST)))
{
TRACE("Failed to CreateStaticSplitter\n");
return FALSE;
}
    
  if (!(bSuccess &= m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CView2), size, pContext))) //CTabView
{
TRACE("Failed to create base pane\n");
return FALSE;
}   //2011.5.26: 将第0行1列再分开2行2列
  if(m_wndSplitterMain.CreateStatic(&m_wndSplitter,2,2,WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 1))==NULL)  
  return FALSE;   
if (!(bSuccess &= m_wndSplitterMain.CreateView(0, 0, RUNTIME_CLASS(CView2), CSize(200, 100), pContext)))
{
TRACE("Failed to create base pane\n");
return FALSE;
}   if (!(bSuccess &= m_wndSplitterMain.CreateView(1, 0, RUNTIME_CLASS(CView3), CSize(200, 100), pContext)))
{
TRACE("Failed to create base pane\n");
return FALSE;
}  if (!(bSuccess &= m_wndSplitterMain.CreateView(0, 1, RUNTIME_CLASS(CView4), CSize(200, 100), pContext)))
{
TRACE("Failed to create base pane\n");
return FALSE;
}   if (!(bSuccess &= m_wndSplitterMain.CreateView(1, 1, RUNTIME_CLASS(CView5), CSize(200, 100), pContext))) //CGLDemoView
{
TRACE("Failed to create base pane\n");
return FALSE;
}     // m_wndSplitter.SetActivePane(0, 0);
// m_wndSplitter.EnableWindow(FALSE);  return TRUE;// return CMDIChildWnd::OnCreateClient(lpcs, pContext);
}