求教!!!!
我建了一个多文档视图的mfc框架,在ChildFrame的OnCreateClient()
函数中将视图分割为两个,请问一下如何在两个视图pLeft ,pRight 中显示不同的文件
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{ if (!m_wndSplitter.CreateStatic(this, 1, 2, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL) )
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
} if (!m_wndSplitter.CreateView(0, 0,
RUNTIME_CLASS(CTestView), CSize(280, 0), 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(CTestView), CSize(0, 0), pContext))
{
TRACE0("Failed to create second pane\n");
return FALSE;
}
// stash left & right pointers into the mergedoc
CTestView * pLeft = (CTestView *)m_wndSplitter.GetPane(0,0);
CTestView * pRight = (CTestView *)m_wndSplitter.GetPane(0,1);
}