title: MFC CView into CDockablePane
body: <p>I need to place a CView derived class into a CDockablePane. Is there any code example somewhere, or can someone provide such code?</p>
  
  <p>What I tried:</p>
  
  <p>Apparently should be simple, online I found advice like "just create the view and set its parent to be the dialog or the dockable pane or what kind of window you want". But for some reason it doesn't work, maybe is because it needs a CFrameWnd, I don't know.</p>
  
  <p>Anyway, I need to be able to do this without creating another document template class. Just to work with preexisting document and view classes.</p>