void   CMainFrame::OnCreateClient(LPCREATESTRUCT   lpcs,   CCreateContext*   pContext) 

        CRect   rect; 
        GetClientRect(&rect); 
        CSize   clientSize   =   rect.Size(); 
    
      //然后每个View按比例大小xflag,yflag来分 
      m_window.CreateView(0,0,RUNTIME_CLASS(CSplitwndView),CSize(clientSize.cx*xflag,clientSize.cy   *   yflag),pContext); } 
/*
CSplitwndView的OnSize(UINT   nType,   int   cx,   int   cy)
ShowWindow(SW_HIDE); 
SetWindowPos(this,0,0,cx,cy-18,SWP_NOZORDER|SWP_NOMOVE); 
ShowWindow(SW_SHOW); 
*/