title: Splitting Child Window in MFC MDI Program
body: <p>I am trying to split the Child Window of an MFC MDI progarm that I am working on but am having some problems. I know I have to use the CSplitterWnd class and have been trying to follow the instructions on the post here: </p>
  
  <p><a href="https://stackoverflow.com/questions/4117284/create-multi-views-in-a-cchildframe-using-csplitterwnd/4151814#4151814">Create multi views in a CChildFrame using CSplitterWnd</a></p>
  
  <p>but can't seem to get it to work, would anyone be able to offer me some advice with regard to these instructions, I have some specific questions:</p>
  
  <ol>
  <li><p>Is CRightView also a CView derived class and what code should go in there if any?</p></li>
  <li><p>Are m_pLeftView, m_pRightView, m_pPhongView and m_pPhongInfo all variables of the appropriate classes and do they have any particular type?</p></li>
  <li><p>Where does CTreeView come from, does not seem to be a standard base class?</p></li>
  <li><p>rc.Width in CChildFrame::OnCreateClient gives an undeclared identifier error, is there something I should be declaring somewhere here?</p></li>
  </ol>
  
  <p>I would appreciate any advice about this, really struggling to get the splitter to work.</p>
  
  <p>Thanks</p>