Edit control not repainted entirely with chosen brush
问题 I have an edit control which background color depends from validity of user input. If input is valid edit control should keep default look, else the background color should change to light gray. I am checking validity in EN_UPDATE handler and if it is invalid I store the HWND of the edit control into vector . Visual Styles are enabled. The problem comes when I change the position of the mouse pointer. Let me describe it: I click on edit control and type invalid input. I move mouse pointer