🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5454

Re: Icon Tray Popup Menu Bug

#5454
From: Michel Leunen
Date: Wed, 17 Aug 2005 18:13
23 lines
1762 bytes
Colin B Maharaj wrote:
> Hi all remember that right click popup menu bug where if you "popup" a 
> menu in the icon tray and do not do anything - it stays up. There were 
> fixes for it in BCB 3 but I cannot get it working working in BCB6, since 
> the icon tray support is much "better" and have little control using the 
> WinApi..

Do something like this:

POINT pt;
GetCursorPos(&pt);
SetForegroundWindow(WndHandle);
FPopupMenu->Popup(pt.x,pt.y);
PostMessage(WndHandle,WM_NULL,0,0);

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <43037e37$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <430306ea$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9fcf3cd5c7af18de
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 17 Aug 2005 20:13:22 +0200
From: Michel Leunen <nospam@noreply.please>
Organization: www.leunen.com
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: fr-be, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Icon Tray Popup Menu Bug
References: <430306ea$1@newsgroups.borland.com>
In-Reply-To: <430306ea$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.246.234.23
Message-ID: <43037e37$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124302391 81.246.234.23 (17 Aug 2005 11:13:11 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail