title: Modal dialog not visible
body: <p>Trying to create modal dialog (CDialogEx) from modeless window form :</p>
  
  <pre><code>void CMainWindow::OnPushButtonClicked ()   
  {   
      InputDialog dlg;
      int r= dlg.DoModal();
      AfxMessageBox("do modal is done");
  }  
  </code></pre>
  
  <p>Got no visible input dialog, but DoModal procedure did not returns. Why dialog is not visible?</p>