Author: jimtabor
Date: Sun Oct 27 01:23:46 2013
New Revision: 60763
URL:
http://svn.reactos.org/svn/reactos?rev=60763&view=rev
Log:
- Patch by Andrew Eikum: Don't try to paint during WM_SETFOCUS if the edit control is
not visible.
Modified:
trunk/reactos/win32ss/user/user32/controls/edit.c
Modified: trunk/reactos/win32ss/user/user32/controls/edit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/edit.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/edit.c [iso-8859-1] Sun Oct 27 01:23:46
2013
@@ -3840,7 +3840,7 @@
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);