Win32: Don't flicker when moving around the window. Fixes #5429