title: How to enable an AfxMessageBox Yes/No (MB_YESNO) "close" button? (upper right corner "X")
body: <p>When calling:</p>
  
  <pre><code>AfxMessageBox(strMsg, MB_YESNO);
  </code></pre>
  
  <p>A messagebox with the buttons "Yes" and "No" is displayed. But the "X" (close button) in the upper right corner is disabled, and pressing ESC has no effect.</p>
  
  <p>This is because the only valid results would be IDYES and IDNO, and not IDCANCEL.</p>
  
  <p>Is there a quick way of getting this behavior enabled?
  What I would like to avoid:</p>
  
  <ul>
  <li>Creating a custom dialog for this.</li>
  <li>Having yes/no/cancel buttons.</li>
  </ul>
  
  <p>In vista, when deleting a file, the dialog asking for confirmation has only "Yes" and "No" and can also be canceled with the close button or with ESC. I'm guessing it's a custom dialog.</p>