| | |
How can i prevent Alt+F4, closing a dialog?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Here's the list of virtual key codes. jencas makes a good point that I was wondering about myself. Still, give it a try and let us know what happens.
•
•
Join Date: Nov 2007
Posts: 978
Reputation:
Solved Threads: 208
•
•
•
•
How can i prevent a dialog closing by Alt+F4 ?
I am using PreTranslateMessage()
•
•
Join Date: Mar 2008
Posts: 1,411
Reputation:
Solved Threads: 114
Seems pretty simple to me, add this to the dialog message procedure, and windows shouldn't handle the ALT-F4.
C++ Syntax (Toggle Plain Text)
case WM_SYSKEYDOWN: break;
Last edited by William Hemsworth; Mar 6th, 2009 at 12:22 pm.
•
•
Join Date: Nov 2007
Posts: 978
Reputation:
Solved Threads: 208
•
•
•
•
Seems pretty simple to me, add this to the dialog message procedure, and windows shouldn't handle the ALT-F4.C++ Syntax (Toggle Plain Text)
case WM_SYSKEYDOWN: break;
![]() |
Similar Threads
- SpeedUp Your Window XP Never Than Before (Windows tips 'n' tweaks)
Other Threads in the C++ Forum
- Previous Thread: Getting a Processes PID From Image Name/Dropping Files
- Next Thread: Help with pointer program
| Thread Tools | Search this Thread |
api array beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game getline google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text text-file tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






