Article View: borland.public.cppbuilder.nativeapi
Article #10017Re: Run Once
From: Remy Lebeau (TeamB)
Date: Mon, 31 May 2004 00:24
Date: Mon, 31 May 2004 00:24
19 lines
1735 bytes
1735 bytes
"JD" <nospam@nospam.com> wrote in message news:40ba2507$1@newsgroups.borland.com... > Well it does. I just wanted to know if there was another method > of finding the window that was (more) reliable. It looks like > I'm gonna have to make the class name unique and use just it > with FindWindow but earlier tests were suspect. If you don't want to use unique names, then another option you can use is to devise a unique message, such as with RegisterWindowMessage(), and then use SendMessage() with the HWND_BROADCAST flag to send the message to all top-level windows. When your own app receives the message, it will be the only app that knows how to respond to the message properly. You could then have your app return its MainForm's Handle back to the calling app that sent the message. Gambit
Technical Details
Message-ID:
<40ba7c47$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40b9cff4$1@newsgroups.borland.com> <40b9ed78$1@newsgroups.borland.com> <40ba2507$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,55fa8aeaf57fcad1 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40b9cff4$1@newsgroups.borland.com> <40b9ed78$1@newsgroups.borland.com> <40ba2507$1@newsgroups.borland.com> Subject: Re: Run Once Date: Sun, 30 May 2004 17:24:25 -0700 Lines: 21 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: 67.22.135.163 Message-ID: <40ba7c47$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085963335 67.22.135.163 (30 May 2004 17:28:55 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail