Deleting
a menu item from a Form's System Menu
You can grab a handle to the system (window)
menu of a Form via the GetSystemMenu API function. With this handle,
you can use API menu manipulation functions such as DeleteMenu, to alter
the system menu. Here's an example to remove the "Move" option from
the system menu. Have a look in the WinAPI help file under "DeleteMenu"
for more information.
KEYWORDS: DeleteMenu, GetSystemMenu,
HMENU
|