[DUG] Windows Messages in a Thread
Ross Levis
ross at stationplaylist.com
Fri Jul 8 23:16:02 NZST 2005
Similar to what I needed help with a few days ago. I would like to set up a thread to handle messages posted from a DLL using PostMessage. I've created a thread object with an extra variable to store the handle from AllocateHWnd, and assigned this to the DLL's parent handle.
I'm not sure whether I need to provide an Thread.Execute procedure since I'm not executing anything. I currently don't have one and I've set FreeOnTerminate to False.
Messages are being received by the WndProc procedure defined in the thread object but I'm not so sure that messages are being processed as they arrive. I may be wrong but I'm wondering if the WndProc procedure is executing in the main thread.
Is what I have done sound right?
Thanks,
Ross.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050708/f0ef45aa/attachment.html
More information about the Delphi
mailing list