Why UpdateWindow() after ShowWindow()?
In WinMain after you CreateWindow, there is:
I wasn't sure why UpdateWindow was there, so I temporarily took it out and the program did the same exact thing.
Can somebody explain this? I realize what UpdateWindow does (If there is an invalid region on the client area and UpdateWindow is called, then a WM_PAINT message bypasses the message queue and the WndProc proccesses the WM_PAINT message).