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;