Small question about MFC\DIALOG
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
-Enter and ESC keys close the dialog how i can stop it . -How i can load accelerator from resource to MFC\DIALOG i use loadaccelerator function but it didn't work. thank you ...
-
-Enter and ESC keys close the dialog how i can stop it . -How i can load accelerator from resource to MFC\DIALOG i use loadaccelerator function but it didn't work. thank you ...
You stop it by overriding OnOK and OnCancel. You can make the buttons still work by checking the keystate with GetKeyState(VK_RETURN) (or VK_ESCAPE) and returning if they are down. Then your button works, but the key does not. Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.