From d62b121a23b9538773be86b457f03c0789dd73ea Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 27 Oct 2013 01:23:46 +0000 Subject: [PATCH] - Patch by Andrew Eikum: Don't try to paint during WM_SETFOCUS if the edit control is not visible. svn path=/trunk/; revision=60763 --- reactos/win32ss/user/user32/controls/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/user/user32/controls/edit.c b/reactos/win32ss/user/user32/controls/edit.c index 0546a9ce851..30aa88f9b9d 100644 --- a/reactos/win32ss/user/user32/controls/edit.c +++ b/reactos/win32ss/user/user32/controls/edit.c @@ -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); -- 2.17.1