mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user