|
-
September 22nd, 2008, 09:55 AM
#1
escape,terminate
Hi
I have a form and i want when the user press the button escape the application will terminate....Better if gets a message so he can confirm if he is sure to terminate the application...
Thanks
-
September 22nd, 2008, 03:01 PM
#2
Re: escape,terminate
What is the application code using ? C/C++ or VB or .Net ?
-
September 25th, 2008, 11:20 PM
#3
Re: escape,terminate
Well you just need to get the keyboard input in you application and check if ESC key is pressed.
Just look for VK_ESCAPE in the WM_KEYDOWN: message in your callback function.
You can do whatever you want before you send WM_CLOSE message to terminate the application(if you want to do it when user presses ESC key)
Kavitesh Singh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|