What happens to pending messages for a window that has been destroyed?
问题 What happens when a window is destroyed while there are still messages pending for it? Consider the following scenario: There are three threads, A, B, and C. Thread C owns a window. Threads A and B use SendMessage to post messages to the window. The message from A arrives first. While C is processing the message from A, it destroys its window using DestroyWindow . What happens to the message from thread B? Does the call by thread B to SendMessage return? How does this work internally? 回答1: