你要有两个view,这是比较有简单的Splitter,如果你要做成像VC界面,你可以下载那个CodeJackey的免费代码,你要网上去search一下吧
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if (!m_wndSplitter.CreateStatic(this, 1, 2))
{
TRACE0("Failed to create splitter window!\n");
return FALSE;
}
//创建CView1视窗
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CView1),
CSize(120, 0), pContext))
{
TRACE0("Failed to create CView1!\n");
return FALSE;
}
//创建CView2视窗
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CView2),
CSize(0, 0), pContext))
{
TRACE0("Failed to create CView2!\n");
return FALSE;
}