I have two threads: a UI thread and a worker thread. From time to time I send some messages from the worker thread to the UI thread in order to update some user interface elements.
That's ok. But I was thinking (as an exercise), what if, I send messages from the UI thread to the worker thread.
Of course the worker thread does not have a message queue, but if I create a hidden window, and in the main loop of the worker thread I will check for incoming messages , it will work ?

What do U think about. Does anyone tried this ????

10x in advance
Good answers will be rated.