void CMainFrame::OnIMan() { // TODO: Add your command handler code here CRect cr; GetClientRect(&cr); CSize paneSize1(200, 100); CCreateContext Context; Context.m_pNewViewClass=RUNTIME_CLASS(out); Context.m_pCurrentDoc=GetActiveDocument(); Context.m_pCurrentFrame=this; Context.m_pNewDocTemplate=NULL; Context.m_pLastView=(CView*)m_splitter.GetPane(0,0); m_splitter.DeleteView(0, 1); m_splitter.CreateView(0, 1,RUNTIME_CLASS(in),paneSize1, &Context); in *pView=(in*)m_splitter.GetPane(0,1); pView->GetParentFrame()->RecalcLayout(); m_splitter.RecalcLayout(); pView->OnInitialUpdate(); m_splitter.SetActivePane(0,1); } void CMainFrame::OnPan() { // TODO: Add your command handler code here CRect cr; GetClientRect(&cr); CSize paneSize1(200, 100); CCreateContext Context; Context.m_pNewView