How to bind a thread to same message queue as original?
I was wondering how it might be possible to bind a new thread to the message queue of the original thread or the one that called CreateThread(). I'm not sure if this is even possible but perhaps there is a better workaround then having to share some data structures between the threads that would be making the messages available to both of them. I know too little about multi-threading in order to prevent race conditions and such. Also that solution isnt very elegant in my opinion. I looked on MSDN but I didn't find many answers. I think they never expect you to do something like that.