Article View: borland.public.cppbuilder.nativeapi
Article #6666Re: Activating the first instance of a program when it's started multiple times
From: SubZero
Date: Fri, 22 Apr 2005 09:30
Date: Fri, 22 Apr 2005 09:30
15 lines
1520 bytes
1520 bytes
But the title of the main window changes during run-time. Regards, SZ "Hans Galema" <notused@notused.nl> wrote in message news:4268bba1@newsgroups.borland.com... > SubZero wrote: >> Ok then how will activate and bring the old process's main form to front? > > Use FindWindow() seaching the text in the Title of the mainwindow > of that app. Then use ::BringWindowToTop(). (untested). > > Hans.
Technical Details
Message-ID:
<4268c454@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.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-mailReferences:
<42688891@newsgroups.borland.com> <1mg2vb4nfnxtd.1d6dylzi167fk.dlg@40tude.net> <4268b171@newsgroups.borland.com> <4268bba1@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: "SubZero" <g_ates@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42688891@newsgroups.borland.com> <1mg2vb4nfnxtd.1d6dylzi167fk.dlg@40tude.net> <4268b171@newsgroups.borland.com> <4268bba1@newsgroups.borland.com> Subject: Re: Activating the first instance of a program when it's started multiple times Date: Fri, 22 Apr 2005 12:30:53 +0300 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 81.214.19.164 Message-ID: <4268c454@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114162260 81.214.19.164 (22 Apr 2005 02:31:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.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