title: CDialog to CView
body: <p>So I've an <code>MFC</code> based application, which is primarily derived from <code>CDialog</code>, with some controls etc.</p>
  
  <p>For certain reasons, it needs to be hosted in another application, using a container class, which is based on <code>CView</code>.</p>
  
  <p>So there has to be some way...of hosting this thing, made using <code>CDialog</code>, inside a container class, which expects the thing as a <code>CView</code>.</p>
  
  <p>The container class is closed to me. It will expect a <code>CView</code>, but I can modify the dialog based application.</p>
  
  <p>Is there an easy way to migrate over from <code>CDialog</code> based to <code>CView</code> based, and what would I need to look at, please. I'm not very skilled with MFC, and the question might sound vague, but it's what I have.</p>
  
  <p>Any help would be appreciated...Thanks.</p>