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 PostHow can i prevent a dialog closing by Alt+F4 ?
I am using PreTranslateMessage()Instead of PreTranslateMessage(), add a handler for WM_SYSCOMMAND and detect SC_CLOSE.
Jump to PostYou sure it's not WM_CLOSE?
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.