Danail wants to know the story behind the WM_SYNCPAINT message.
The documentation pretty much tells the story. When a window has been hidden, shown, moved or sized, the system may determine that it needs to send a WM_SYNCPAINT message to the windows of other threads. This message must be passed to DefWindowProc, which ...