Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
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 23, 2024, 3:41 am This article has been viewed 35216 times. Google search has resulted in 63 hits on this article since January 25, 2004.
|
|