Alt-F4 But....

  • Thread starter Thread starter gentlerobbin
  • Start date Start date
G

gentlerobbin

How can I enable Alt-F4 to close the application but won't dispose its
handle ? Alt-F4 will just act as Close or Ok/Cancel button of the
form

Thanks
 
How can I enable Alt-F4 to close the application but won't dispose its
handle ? Alt-F4 will just act as Close or Ok/Cancel button of the
form

You'd have to trap the WM_SYSCOMMAND message and not allow the system to do
its default handling of that message.
 
Back
Top