Alt-F4 But....

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
 
J

Jeff Johnson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top