🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #239

Re: Disabling system menu

#239
From: Bill Turner
Date: Fri, 23 Jun 1989 16:23
13 lines
987 bytes
> Hi, I am trying to disable 'Size' option on the system menu, I used 
> GetSystemMenu and EnableMenuItem(hSysMenu, 3, MF_BYPOSITION | MF_DISABLE),
> but nothing happened, the 'Size' option was still enabled...

Did you call DrawMenuBar afterwards?  I know that for the app menu this is
required for the changes to appear -- this is NOT the same as taking effect,
as that should occur immediately.

You could also try EnableMenuItem(hSysMenu, SC_SIZE, MF_BYPOSITION | MF_DISABLE)
and see how that works...

--Bill Turner (bturner@hp-pcd.hp.com)
HP Corvallis Information Systems
Technical Details
Message-ID: <106580045@hpcvlx.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner
References: <29810@ucbvax.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner
From: bturner@hpcvlx.HP.COM (Bill Turner)
Newsgroups: comp.windows.ms
Subject: Re: Disabling system menu
Message-ID: <106580045@hpcvlx.HP.COM>
Date: 23 Jun 89 16:23:08 GMT
References: <29810@ucbvax.BERKELEY.EDU>
Organization: Hewlett-Packard Co., Corvallis, OR, USA
Lines: 13