I have a window. When a message is sent to it I process the message and then I want to redraw the window.
So. I do the following --
InvalidateRect( hwnd, NULL, FALSE );
UpdateWindow( hwnd );
And suprise suprise it doesn't update!! Why? Depending on the information this window has it will draw differently. In this message I have changed a variable and so the window should look different. I've even tested the variable and it's right!