On 2016-01-18 17:56:19 +0000, Snke Ludwig said:

I've never had an issue with the latter approach. My understanding is
that the message queue can hold messages for any number of otherwise
unrelated windows created by the calling thread. GetMessage with a
NULL hWnd parameter receives any of those, and DispatchMessage
dispatches to the window procedure associated with their respective
window class.

Just to confirm, you are right. It's pretty simple then... very good.

Robert M. Münch
http://www.saphirion.com
smarter | better | faster