title: How to call CDialog::DoModal() with modified DLGTEMPLATEEX
body: <p>I know that I can create a dialog window using a <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms645398(v=vs.85).aspx" rel="nofollow">DLGTEMPLATEEX</a> template in memory using <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms645461(v=vs.85).aspx" rel="nofollow">DialogBoxIndirectParam</a>.</p>
  
  <p>But with MFC can I dynamically modify DLGTEMPLATEEX in <a href="https://msdn.microsoft.com/en-us/library/8zkyyhxw.aspx" rel="nofollow">CDialog</a> before <a href="https://msdn.microsoft.com/en-us/library/619z63f5.aspx" rel="nofollow">DoModal</a> is called?</p>