Article View: borland.public.cppbuilder.nativeapi
Article #910Re: Controlling one application panels from MY Application?
From: Remy Lebeau (TeamB)
Date: Wed, 12 Dec 2007 18:01
Date: Wed, 12 Dec 2007 18:01
31 lines
2321 bytes
2321 bytes
"Tom" <Tom@NoMail.com> wrote in message news:475fa0c5$1@newsgroups.borland.com... > Can you please show me how to do that? if for example I > have an EditBox that have the handle 0x73E87AD2, how > do I use this handle to Set/Read value in that Edit box? Send WM_GETTEXT and WM_SETTEXT messages to it, like I suggested earlier. > If I have a Menu that have the handle 0x24C87321, how do > I use this handle to perform a "Mouse" Click on this menu? You don't. What you need to do instead is determine the ID of the menu item you are interested in executing, and then send a WM_COMMAND message to the menu's owner window. >>> I can change the first application to send the second application >>> the handles of each button & menu & Edit box on each panel >> >> It does not need to do that. The second application can do that >> on its own. > > Can you Please show me how to do that? (If it's a short code...) Look at the FindWindow/Ex() and EnumChildWindows() functions. Start with the top-level window of the app and drill down its parent-child trees until you find the particular child control that you want to interact with. Gambit
Technical Details
Message-ID:
<4760234c$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<475e9997$1@newsgroups.borland.com> <475ed852$1@newsgroups.borland.com> <475fa0c5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,753654e2c561931a X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <475e9997$1@newsgroups.borland.com> <475ed852$1@newsgroups.borland.com> <475fa0c5$1@newsgroups.borland.com> Subject: Re: Controlling one application panels from MY Application? Date: Wed, 12 Dec 2007 10:01:11 -0800 Lines: 33 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <4760234c$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1197482828 207.178.157.90 (12 Dec 2007 10:07:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail