🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Run Once

#10020
From: JD
Date: Mon, 31 May 2004 00:43
20 lines
1655 bytes
"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"JD" <nospam@nospam.com> wrote in message
>news:40ba2507$1@newsgroups.borland.com...
>
>> [...] I just wanted to know if there was another method
>> of finding the window that was (more) reliable.
>
>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.

I like that idea.

~ JD
Technical Details
Message-ID: <40ba7fb5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40b9cff4$1@newsgroups.borland.com> <40b9ed78$1@newsgroups.borland.com> <40ba2507$1@newsgroups.borland.com> <40ba7c47$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: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Run Once
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.169.97.211     
References: <40b9cff4$1@newsgroups.borland.com> <40b9ed78$1@newsgroups.borland.com> <40ba2507$1@newsgroups.borland.com> <40ba7c47$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40ba7fb5$1@newsgroups.borland.com>
Date: 30 May 2004 17:43:33 -0700
X-Trace: newsgroups.borland.com 1085964213 207.105.83.66 (30 May 2004 17:43:33 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail