🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Controlling one application panels from MY Application?

#907
From: Remy Lebeau (TeamB)
Date: Tue, 11 Dec 2007 18:29
27 lines
2058 bytes
"Tom" <Tom@NoMail.com> wrote in message 
news:475e9997$1@newsgroups.borland.com...

> What is the best way for doing it?

If you can change the source code for the first application, then you could 
set it up so the second application can send custom window messages to 
control it.  That way, you don't have to worry about performing clicks at 
all.

Otherwise, the second application will have to manually locate the HWND 
handles of the desired controls and issue standard Win32 API messages to 
them directly, such as WM_COMMAND/BN_CLICKED and WM_SETTEXT.

> 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.

> will the second application be able to use this handles for clicking
> the buttons or for reading and setting values in the edit boxes?

Yes.


Gambit 
Technical Details
Message-ID: <475ed852$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!hwmnpeer03.ams!news.highwinds-media.com!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <475e9997$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>
Subject: Re: Controlling one application panels from MY Application? 
Date: Tue, 11 Dec 2007 10:29:35 -0800
Lines: 29
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 207.178.157.90
Message-ID: <475ed852$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1197398098 207.178.157.90 (11 Dec 2007 10:34:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!hwmnpeer03.ams!news.highwinds-media.com!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail