BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext) { CSplitterWnd m_wndSplitter; CSplitterWnd m_wndSplitter2; m_wndSplitter.CreateStatic(this,2, 1); m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CTopView),CSize(0,20),pContext); m_wndSplitter2.CreateStatic(&m_wndSplitter,1,2,WS_CHILD|WS_VISIBLE,m_wndSplitter.IdFromRowCol(1,0)); m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CLeftView),CSize(0,0),pContext); m_wndSplitter2.CreateView(0,1,RUNTIME_CLASS(CRightView),CSize(0,0),pContext) ; m_wndSplitter2.SetColumnInfo(0,206,10); return TRUE; }