`
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" Printed November 23, 2024, 6:57 am This article has been viewed/printed 35216 times. Google search has resulted in 63 hits on this article since January 25, 2004. |