As far as i was aware the UpdateWindow() function did this:
"The UpdateWindow function updates the client area of the specified window by sending a WM_PAINT
message to the window if the window's update region is not empty. The function sends a WM_PAINT
message directly to the window procedure of the specified window, bypassing the application queue.
If the update region is empty, no message is sent."
But even if i dont use this function, the WM_PAINT message is still processed, how come?
I'm not 100% on this as I'm going from memory here, but I think the OS will send WM_PAINT messsages to your Window when it wants to redraw it. UpdateWindow() is a way to explicitly force that to occur; it's not as though it doesn't occur if you don't call that function.