Solve the flicker during MFC drawing