altF4 closure [SOLVED]


It is a newbie question, but when a user uses the alt f4, it closes my windows, but it doesn’t stop my program.

How can I catch alt F4 or the cross icon on the window, to quit properly?

Thank you

and then accept that event.


A little correction, you mean“MYOWNCLOSEENVENTNAMEF4”)

Thank you by the way