Escape key
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
Hi, I've noticed that the dialog-box programs I write using Visual C++ studio exit when the escape key is pressed. Does anyone know how I can stop this. Thanks - Gary.
You need to override the
OnCancel
function, and remove the call to CDialog::OnCancel. -
You need to override the
OnCancel
function, and remove the call to CDialog::OnCancel. -
Hi, I've noticed that the dialog-box programs I write using Visual C++ studio exit when the escape key is pressed. Does anyone know how I can stop this. Thanks - Gary.
For future reference... :) 7.4 How do I prevent a dialog from closing when the user presses Enter or Esc?[^] --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD