Thanks VIP3R, that does indeed get the handle of the Blitz Graphic window. I then called a modified version of Snarkbait's code as follows:
I added Or $80000 to get a system menu because adding $20000 on its own for a Minimise box doesn't work.
So now I have a blitz graphic window with a system menu and a minimise button (no maximise or resize, which is fine). One of my original questions remain: How can I tell the App to minimise if the user presses a "Boss" key? Also when I click the X, the app doesn't close. So how do I intercept the close event in my main loop so I can exit the app myself. Any help is really appreciated. Thanks
Wlong = User32_GetWindowLong(TheWindow, -16) Wlong = Wlong Or $20000 Or $80000 Notify User32_SetWindowLong(TheWindow, -16, Wlong)
I added Or $80000 to get a system menu because adding $20000 on its own for a Minimise box doesn't work.
So now I have a blitz graphic window with a system menu and a minimise button (no maximise or resize, which is fine). One of my original questions remain: How can I tell the App to minimise if the user presses a "Boss" key? Also when I click the X, the app doesn't close. So how do I intercept the close event in my main loop so I can exit the app myself. Any help is really appreciated. Thanks