🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Waiting for Postmessage

#4078
From: Remy Lebeau (TeamB)
Date: Sun, 26 Mar 2006 21:41
27 lines
1823 bytes
"Chris" <nospam@nospam.com> wrote in message
news:44256a9d$1@newsgroups.borland.com...

> I need to use postmessage to send a sequence of messages to
> a window outside of my app.  I cannot use sendmessage

Why not?

> I do need to wait for the window to finish processing this
> sequence before my app can continue.

Then you should be using SendMessage().

> Is there some way of being notified or being able to query the
> window to determine when it has finished  processessing them all?

The only way to get any kind of notification for posted messages is if you
use a named event via CreateEvent().  Your app can reset the event, post the
messages, and then wait for the event to be signalled.  The other app can
then open and signal the event when the messages have been processed.  Of
course, that means that the other app has to know to work with your event in
the first place.  If it is not, then there is nothing you can do to wait on
posted messages.


Gambit
Technical Details
Message-ID: <44270a82@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44256a9d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9b269a4eb4a0e781
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: <44256a9d$1@newsgroups.borland.com>
Subject: Re: Waiting for Postmessage 
Date: Sun, 26 Mar 2006 13:41:22 -0800
Lines: 29
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: <44270a82@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1143409282 68.69.17.41 (26 Mar 2006 13:41:22 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail