Yet another question by me

Archives Forums/Win32 Discussion/Yet another question by me

Picklesworth(Posted 2005) [#1]
How do I catch and cancel a window close event? (when the user clicks on the "X")
Or even better, how do I tell a window to not close itself, but still send me an event when the X is clicked?

What I have is a window inside of my app that can be dragged around freely, and it has a close button. When the user clicks the close button, it should simply hide itself so that the window can be openned up again later by making it visible again.
If it's of any use: I am using WinBlitz 3d to handle my window creation, and it does a bit of the event handling.