The thread to which the message is posted must have created a message
queue, or else the call to PostThreadMessage fails.

そのスレッド Window をつくってメッセージループ動かしてる?
そもそも、普通のワーカスレッドでどうやってメッセージを受け取るつもり?