GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2021-Feb-08

Title: Windows - disable Close Button on Window
Post by: MrPlow on 2021-Feb-08
Is there a way to grey out the windows close button or circumvent it?
Title: Re: Windows - disable Close Button on Window
Post by: bigsofty on 2021-Feb-08
The code necessary can be found in this SO answer. Will need a bit of inlining though... https://stackoverflow.com/questions/13189791/disable-x-button-icon-on-the-top-of-the-right-in-messagebox-using-c-win32-api 
Title: Re: Windows - disable Close Button on Window
Post by: MrPlow on 2021-Feb-09
Cheers, I'll see if i can work it out!
Title: Re: Windows - disable Close Button on Window
Post by: spacefractal on 2021-Feb-10
im meant im a day implmented it secrets as SETSCREEN x,x,2. Im do not sure its still works or not removed as im used its international.

Currectly it not officiel to do that throught, so dont bug me at all.