Article View: borland.public.cppbuilder.nativeapi
Article #11896Binding popup menu of another program
From: nicolasr
Date: Sat, 10 Jan 2004 01:44
Date: Sat, 10 Jan 2004 01:44
22 lines
1623 bytes
1623 bytes
Hi, I need to automate a program which has a popup menu. This other program has a button which, when clicked, brings up the popup menu. I am able to click the button from my controller program and the popup menu shows up. However, how can I get this popup menu? The other program is written in Delphi so I assume that the popup has TPopupMenu as classname. I then tried to use FindWindow/FindWindowEx to find the menu. However, to no avail. I am not sure whether I used the correct arguments. What is usually the parent of a popup menu? Or is a popup menu a top level window? The main problem is that I can't use Spy++ to check this out because the popup menu of course disappears when I switch to Spy++. thanks for any idea, Nick
Technical Details
Message-ID:
<3fff5912$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5d250d2ded0985aa,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-09 18:09:58 PST From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Binding popup menu of another program Date: Sat, 10 Jan 2004 02:44:50 +0100 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 80.133.164.159 Message-ID: <3fff5912$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073699090 80.133.164.159 (9 Jan 2004 17:44:50 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail