title: How to prevent MFC dialog closing on Enter and Escape keys?
body: <p>I know one method of preventing an MFC dialog from closing when the <kbd>Enter</kbd> or <kbd>Esc</kbd> keys are pressed, but I'd like to know more details of the process and all the common alternative methods for doing so.</p>
  
  <p>Thanks in advance for any help.</p>