title: How to disable that an MFC application exits on pressing ESC or ALTF+F4?
body: <p>I have an MFC application, which i don't want to be closed during the running. I have disabled the "X" icon in the right upper corner, but now if i press the ESC key, or ALT+F4 it still closes. </p>
  
  <p>How can i disable this, so it won't close, if someone press those keys? After the program has finished running i want to reenable them.</p>
  
  <p>Thanks,<br>
  kampi</p>