Stop the flickering of the caret in edit box and text box when the windows isn't focused