How can i prevent a dialog closing by Alt+F4 ?
I am using PreTranslateMessage(),,,,what is the Virtual key #define for Alt+F4 or is there any other way?,,,,thank you
risa
0
Light Poster
Recommended Answers
Jump to PostIt's a combination of the F4 key code combined with the alt modifiers, you need to check both.
But i'd avoid trying to prevent it if I was you....
Jump to PostIf I remember correctly, Alt+F4 never reaches PreTranslateMessage()
All 8 Replies
Freaky_Chris
299
Master Poster
jencas
nucleon
114
Posting Pro in Training
mitrmkar
1,056
Posting Virtuoso
Comatose
290
Taboo Programmer
Team Colleague
mitrmkar
1,056
Posting Virtuoso
William Hemsworth
1,339
Posting Virtuoso
mitrmkar
1,056
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.