- Patch by Andrew Eikum: Don't try to paint during WM_SETFOCUS if the edit control is not visible.

svn path=/trunk/; revision=60763
This commit is contained in:
James Tabor 2013-10-27 01:23:46 +00:00
parent 22cc4c8cc5
commit d62b121a23

View file

@ -3840,7 +3840,7 @@ static void EDIT_WM_SetFocus(EDITSTATE *es)
EDIT_InvalidateText(es, es->selection_start, es->selection_end);
/* single line edit updates itself */
if (!(es->style & ES_MULTILINE))
if (IsWindowVisible(es->hwndSelf) && !(es->style & ES_MULTILINE))
{
HDC hdc = GetDC(es->hwndSelf);
EDIT_WM_Paint(es, hdc);