title: MFC 10 - Is it possible to have a CFrameWnd within a CView?
body: <p>I'm using MFC (yes must be MFC and no I can't interop with .Net) to create a CFrameWnd.</p>
  
  <p>My goal is to create a CFrameWnd containing a CFormView which is based on a Dialog Template that resembles something like:</p>
  
  <p><img src="https://i.stack.imgur.com/79PAM.png" alt="enter image description here"></p>
  
  <p>I have got the frame and view to display, and I have an Edit control on there. Now what I want is to have a CToolbar aligned to the top of the Edit Text control but not docked to the top frame.</p>
  
  <p>Ideally I would like to have a child frame/view that I can dynamically add in place of the Statement Group. That way I could just dock the toolbar as normal.</p>
  
  <p>The thing that I find odd is that I could easily achieve this if I had a splitter in there by using the CreateView function. I really don't want to have a splitter and feel there ought to be another way.</p>
  
  <p>In summary, these are the question I need help with:</p>
  
  <ul>
  <li>Q1 - How can I have a CFrameWnd within a CView (like what CSplitter::CreateView does)?</li>
  <li>Q2 - How can I position a toolbar within a CView without docking or floating it within another frame (I'm more than willing to resize, position it manually if only I knew how)?</li>
  </ul>
  
  <p>Now I really appreciate how easy things are in .Net.</p>