Hi all,
I¹m using a plugin to create a new (true, Windows) background thread on
Win32. I need to communicate between this thread and the main thread of my
application. On OS X, I use Carbon Events to post messages to the carbon
event queue, and register my app to receive them. On Win32, MSDN makes it
sound as though all queued message handling and dispatching is managed in my
application¹s Message Loop, which is defined in WinMain:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
/windowsuserinterface/windowing/messagesandmessagequeues/usingmessagesandmes
sagequeues.asp
Now, I can see how I would go about posting messages to this queue via
PostThreadMessage, but I don¹t know how I can intercept these messages when
they arrive on the main thread of my application. Because REALbasic is
managing the main thread, I have no way to ?hook in¹ to say ³when the
application receives a special event of this type, call this method¹. Is
there a way I can tell the main Message Loop for the app to send my custom
messages elsewhere, or define custom events for a Window which match the
signature of my custom messages?
In fact (for people who know more about Win32 than me), what will happen to
any custom application messages I send to this queue?
Dave.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|