我需要实现的是如下形状:
|--------------------------|
|                          |
|-----|--------------------|
|     |                    |
|-----|--------------------|
|            |             |
|            |             |  
|--------------------------|,
实现的代码如下:
if (!m_wndSplitter1.CreateStatic(this, 3, 1))
{
AKTRACE("Failed to create splitter window\n",__FUNCTION__);
return FALSE;
}if (!m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLogIin), CSize(rect.Width(), rect.Height ()/12), pContext))
{
AKTRACE("Failed to create login pane view\n",__FUNCTION__);
return FALSE;
}
m_wndSplitter.CreateStatic(&m_wndSplitter1,1,2,WS_CHILD | WS_VISIBLE, m_wndSplitter1.IdFromRowCol(1, 0)); if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftPaneView), CSize(rect.Width()/10, 2*rect.Height ()/3), pContext))
{
AKTRACE("Failed to create left pane view\n",__FUNCTION__);
return FALSE;
}

if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightPaneFrame), CSize(9*rect.Width()/10, 2*rect.Height ()/3), pContext))
{
AKTRACE("Failed to create right pane frame\n",__FUNCTION__);
return FALSE;
}m_wndSplitter2.CreateStatic(&m_wndSplitter1,1,2,WS_CHILD | WS_VISIBLE, m_wndSplitter1.IdFromRowCol(2, 0)); if (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CMYLISTVIEW), CSize(rect.Width()/2, rect.Height ()/4), pContext))
{
AKTRACE("Failed to create mylist pane view\n",__FUNCTION__);
return FALSE;
}if (!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CMAPVIEW), CSize(rect.Width()/2, rect.Height ()/4), pContext))
{
AKTRACE("Failed to create map pane frame\n",__FUNCTION__);
return FALSE;
}
得到了我想要的结果,但是大小不对,中间的两格全部被下面的两格抢去了,结果如下:
|--------------------------|
|                          |
|-----|--------------------|
|-----|--------------------|
|            |             |
|            |             |  
|--------------------------|
中间的两条线其实已经连成一起了,不知道是为什么?请高手解答。