Window closed message?

Blitz3D Forums/Blitz3D Programming/Window closed message?

http://www.blitzbasic.com/codearcs/codearcs.php?code=831

Here we are. It disables the x. I want to be able to intercept it though. Not sure how to make the decls either.