|The only things you should be doing between
EndPaint is redrawing/rewriting the parts of the client window that may have changed. Outside of the
WM_PAINT handler, you decide which part (or all) of the window needs to be repainted. You then set those values into a call to
InvalidateRect, which will post a
WM_PAINT message to your message queue.