OnCreateClient是虚函数
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
// 创建拆分窗口
if(!m_SplitterWnd.CreateStatic(this,2,1))
return FALSE;
CRect clRect;
GetClientRect(&clRect);
CSize clSize=clRect.Size();
int y=(int)clSize.cy/2-10;
//Create CTestDownView
if(!m_SplitterWnd.CreateView(0,0,RUNTIME_CLASS(CTestDownView),CSize(0,y),pContext))
return FALSE;
//Create CContainerView
if(!m_SplitterWnd.CreateView(1,0,RUNTIME_CLASS(CContainerView),CSize(0,0),pContext))
return FALSE;