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!

03-04-2004

filler_bunny

The variable is declared outside of the case block and is declared as static?

03-04-2004

Mithoric

It's not a problem with the variable. At least it shouldn't be. It works on other update times but just not on this specific one which is really weird....