| | |
How can i prevent Alt+F4, closing a dialog?
![]() |
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: 1,294
Reputation:
Solved Threads: 267
•
•
•
•
How can i prevent a dialog closing by Alt+F4 ?
I am using PreTranslateMessage()
•
•
Join Date: Mar 2008
Posts: 1,522
Reputation:
Solved Threads: 127
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 11:22 am.
•
•
Join Date: Nov 2007
Posts: 1,294
Reputation:
Solved Threads: 267
•
•
•
•
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: Scanf doesn't work? HELP!! Reading in wrong things... Homework Due tonight!
- Next Thread: Help with pointer program
Views: 985 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for C++
algorithm api array arrays assignment basic beginner binary browser c++ c/c++ calculator char class classes code compile compiler constructor conversion convert count data delete desktop display dll dynamic encryption error file files form fstream function functions game givemetehcodez graph gui homework i/o iamthwee input int integer lazy library linker list loop loops map math matrix member memory network newbie news number object objects opengl output parameter pointer pointers problem program programming project random read recursion recursive reference sort sorting spoonfeeding string strings struct student studio template templates text time tree undefined variable vc++ vector video visual win32 window windows winsock






