In visual c++, what is the difference between these three:
WindowClass.style = CS_HREDRAW | CS_VREDRAW; //Found in winmain()
UpdateWindow(hWnd); // Also found in winmain()
WM_PAINT //It is a switch case in funtion winproc()
I unerstand that all three of them does something like to draw/redraw the client window/window. But can someone elaborate abit about these three in simple and their difference in simple terms.