🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by Chris Sat, 25 Mar 2006 16:06
Waiting for Postmessage
#4070
Author: Chris
Date: Sat, 25 Mar 2006 16:06
12 lines
1226 bytes
Hi

I need to use postmessage to send a sequence of messages to a window outside 
of my app.  I cannot use sendmessage but I do need to wait for the window to 
finish processing this sequence before my app can continue.

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

Cheers

Chris 
Re: Waiting for Postmessage
#4071
Author: Clayton Arends
Date: Sat, 25 Mar 2006 16:34
10 lines
1276 bytes
"Chris" <nospam@nospam.com> wrote in message 
news:44256a9d$1@newsgroups.borland.com...

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

Perhaps this line needs a little more explanation.  Why can't you use 
SendMessage()?

- Clayton
Re: Waiting for Postmessage
#4078
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads