How do I PostMessage (PostThreadMessage?!?) from a worker thread to a TComponent descendent?
Posted on 2004-11-25
Hi! I want to create a custom component (derived from TComponent) that spawns a worker thread which uses PostMessage or PostThreadMessage to asynchronously report progress in a non-blocking manner back to the custom component. I can't use synchronization as I need the worker thread to run at speed.
I've read through dozens of "answers" on the subject on this board but all of the answers are incomplete or fragmentary. I'd appreciate a COMPLETE source-code example since there's obviously something subtle I'm missing. Thanks....