Yeah, its SendMessage which will switch to the target window thread. PostMessage will not switch. If you use SendMessage, make sure to yield your time slice after rendering when there are no messages in the queue, otherwise the thread will sit around doing nothing while waiting for the go ahead to draw the next frame. Using WaitMessage in the window message loop is the best way to do this, otherwise you need to explicitly call Sleep if PeekMessage ends up not having any messages available for processing.



. LOL!
