🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#6581
From: Hans Galema
Date: Fri, 22 Apr 2005 17:37
14 lines
1715 bytes
Remy Lebeau (TeamB) wrote:

> The class name should not change, though.  FindWindow() can look for class
> names as well as window titles.  Just make sure to give your form class a
> unique name.

But there is still a problem then. The second instance has the same
ClassName(). So how would you distinghuish between the first and
the last ?

When searching for an Application->Title the trick was to temporally
give the Application no Title. How for a ClassName() ?

Hans.
Technical Details
Message-ID: <42693703$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3c4287e4044a862e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 22 Apr 2005 19:37:44 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Activating the first instance of a program when it's started
 multiple times
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>
In-Reply-To: <42692f91$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <42693703$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114191619 129.125.201.248 (22 Apr 2005 10:40:19 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail