Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Windows API: Removing the System menu 2003-03-28 -- Vernon Jay Godwin Newsgroups: comp.lang.clarion
Hello,
Disabling the close button isn't too hard. Will require a bit of work tho:
First...define these in the global map...
GetSystemMenu(unsigned, signed),unsigned,PASCAL
RemoveMenu(unsigned, signed, signed),signed,PASCAL
DrawMenuBar(unsigned),signed,PASCAL
Now, on the window you want to disable the close button on...do the
following:
Add Following Data:
hMenu unsigned
nRemove signed
nDraw signed
- "After Opening Window" Embed
hMenu = GetSystemMenu(Window{Prop:Handle}, 0)
nRemove = RemoveMenu(hMenu, 0F060h, 01000h)
nDraw = DrawMenuBar(Window{Prop:Handle})
Welp, that was quick :)
Hope that helps,
Vernon Jay Godwin
www.kefrendesigns.com
"Maarten"
Today is November 21, 2024, 3:36 am This article has been viewed 35213 times. Google search has resulted in 63 hits on this article since January 25, 2004.
|
|