Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
*NEW*
Current Version on
STEAM
:
16.026
Logfile:
EN
,
DE
Webchat:
Visit the chat
Home
Help
Search
Login
Register
GLBasic forum
»
Main forum
»
GLBasic - en
»
Windows - disable Close Button on Window
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Windows - disable Close Button on Window (Read 1468 times)
MrPlow
Prof. Inline
Posts: 1810
Windows - disable Close Button on Window
«
on:
2021-Feb-08 »
Is there a way to grey out the windows close button or circumvent it?
Logged
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs
bigsofty
Community Developer
Prof. Inline
Posts: 2793
Re: Windows - disable Close Button on Window
«
Reply #1 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
Logged
Cheers,
Ian.
“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)
MrPlow
Prof. Inline
Posts: 1810
Re: Windows - disable Close Button on Window
«
Reply #2 on:
2021-Feb-09 »
Cheers, I'll see if i can work it out!
Logged
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs
spacefractal
Community Developer
Prof. Inline
Posts: 4025
Re: Windows - disable Close Button on Window
«
Reply #3 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.
Logged
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.
Print
Pages: [
1
]
Go Up
« previous
next »
GLBasic forum
»
Main forum
»
GLBasic - en
»
Windows - disable Close Button on Window