I have made a graphics window using Graphics and flag 2 on the end so that it has a title bar. Then I have captured the window handle and added a system menu and minimise and close buttons. I chose this rather than create window because it is a game not an app.
Someone posted a win_Close function a while ago that uses bwin.dll but this only detects when the close button is clicked not when the user presses Alt+F4 or uses the system menu to close (same as Alt+F4). Also using a custom .dll to detect this seems a bit lame.
Does anyone know how to use either Blitz commands or standard windows .dlls e.g. User32 etc to detect when a system menu close option or the close button has been selected? This would be really helpful.
Thanks
Someone posted a win_Close function a while ago that uses bwin.dll but this only detects when the close button is clicked not when the user presses Alt+F4 or uses the system menu to close (same as Alt+F4). Also using a custom .dll to detect this seems a bit lame.
Does anyone know how to use either Blitz commands or standard windows .dlls e.g. User32 etc to detect when a system menu close option or the close button has been selected? This would be really helpful.
Thanks