🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #256

Re: ModifyMenu

#256
From: Rob Kennedy
Date: Wed, 14 Jan 2004 21:49
12 lines
1675 bytes
Jens Gruschel wrote:
> Stupid problem: After adding a menu item to the application's (or a form's)
> system menu (using AppendMenu or InsertMenuItem with GetSystemMenu), I want
> to be able to change its checked state (MF_CHECKED). I guess I have to use
> SetMenuItemInfo. But how do I get my item's position / identifier (which I
> have to pass to SetMenuItemInfo)?

You already gave it an identifier: the third parameter to AppendMenu or 
the fifth field of the record passed to InsertMenuItem.

-- 
Rob
Technical Details
Message-ID: <4005b957$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4005b0ab@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,645866ad99c980d6
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-14 14:10:18 PST
Date: Wed, 14 Jan 2004 15:49:16 -0600
From: Rob Kennedy <.>
Organization: none
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: ModifyMenu
References: <4005b0ab@newsgroups.borland.com>
In-Reply-To: <4005b0ab@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.74.193.46
Message-ID: <4005b957$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074116951 68.74.193.46 (14 Jan 2004 13:49:11 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail