🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Activating the first instance of a program when it's started multiple times

#6582
From: Remy Lebeau (TeamB)
Date: Fri, 22 Apr 2005 19:03
15 lines
1679 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:4269495c$1@newsgroups.borland.com...

> If you look for a form rather than the TApplication window, then you
> can call FindWindow() before the second instance ever created any
> forms instances.  Thus only the first instance's forms will be available
> to be found.

If that is not an option, then you cxan alternative give the second
instance's window a unique title and then use FindWindowEx() in a loop until
you find a window that does not have the same unique title.


Gambit
Technical Details
Message-ID: <426949dc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <42688891@newsgroups.borland.com> <1mg2vb4nfnxtd.1d6dylzi167fk.dlg@40tude.net> <4268b171@newsgroups.borland.com> <4268bba1@newsgroups.borland.com> <4268c454@newsgroups.borland.com> <42692f91$1@newsgroups.borland.com> <42693703$1@newsgroups.borland.com> <4269495c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3c4287e4044a862e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42688891@newsgroups.borland.com> <1mg2vb4nfnxtd.1d6dylzi167fk.dlg@40tude.net> <4268b171@newsgroups.borland.com> <4268bba1@newsgroups.borland.com> <4268c454@newsgroups.borland.com> <42692f91$1@newsgroups.borland.com> <42693703$1@newsgroups.borland.com> <4269495c$1@newsgroups.borland.com>
Subject: Re: Activating the first instance of a program when it's started multiple times
Date: Fri, 22 Apr 2005 12:03:01 -0700
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <426949dc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114196444 68.69.17.41 (22 Apr 2005 12:00:44 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail