如何控制拆分条的位置,及禁止拆分条移动!我分了三个窗口,一条水平拆分条和一条竖直拆分条!请说的详细点!谢谢!!
------解决方案--------------------------------------------------------
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
CRect rect;
GetClientRect(&rect);
if ( !m_wndSplitter.CreateStatic(this,1,2) )
{
TRACE0( "Failed to CreateStaticSplitter\n ");
return FALSE;
}
// add the first splitter pane - the default view in column 0
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CExplorerTreeView),
CSize(240,rect.bottom), pContext))
{
TRACE0( "Failed to create first pane\n ");
return FALSE;
}
// add the second splitter pane - an input view in column 1
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CExplorerListView),
CSize(rect.right,rect.bottom-350), pContext))
{
TRACE0( "Failed to create second pane\n ");
return FALSE;
}
m_pTreeView = (CExplorerTreeView*)m_wndSplitter.GetPane(0,0);
m_pListView = (CExplorerListView*)m_wndSplitter.GetPane(0,1);
return CFrameWnd::OnCreateClient(lpcs, pContext);
}