Invalidates the entire client area of CWnd. The client area is marked for painting when the next WM_PAINT message occurs
Windows sends a WM_PAINT message whenever the CWnd update region is not empty and there are no other messages in the application queue for that window.
http://blog.csdn.net/ghevinn/article/details/23286151