Code:
BOOL CSplitter_Main::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// create a splitter with 2 row, 1 columns
if (!m_wndSplitter.CreateStatic(this, 2, 1))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
m_wndSplitter1.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD|WS_VISIBLE|WS_BORDER|WS_MAXIMIZE, m_wndSplitter.IdFromRowCol(0, 0)) ;
// add the first splitter pane - an input view in row 0
if (!m_wndSplitter1.CreateView(0,0, RUNTIME_CLASS(CEntityTreeView), CSize(170, 550), pContext))
{
TRACE0("Failed to create second pane\n");
return FALSE;
}
// add the second splitter pane - the default view in row 1
if (!m_wndSplitter1.CreateView(0, 1, RUNTIME_CLASS(CScenGenView), CSize(150,550), pContext))
{
TRACE0("Failed to create first pane\n");
return FALSE;
}
//Line to split the second column into 3 more rows
m_wndSplitter2.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD|WS_VISIBLE|WS_BORDER|WS_MAXIMIZE, m_wndSplitter.IdFromRowCol(1, 0)) ;
if(!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CEntityListView), CSize(800, 200), pContext))
{
TRACE0("Failed to create first pane\n");
return FALSE;
}
if(!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CEntityDetailInfoView), CSize(800, 200), pContext))
{
TRACE0("Failed to create first pane\n");
return FALSE;
} THIS SPLITTER2 NEED TO CHANGE THE VALUES
m_wndSplitter.SetRowInfo(0, 700, 500) ;
// activate the input view
SetActiveView((CView*)m_wndSplitter1.GetPane(0,1));
return TRUE;
//return CMDIChildWnd::OnCreateClient(lpcs, pContext);
}

