Yes, windows still inteprete ESC key as the OnCancel message handler, because OnCancel is in CDialog class, it still can be invoked even if you delete the Cancel button.
The solution is : override the PreTranslateMessage function
and modify it:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.