mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +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:
parent
22cc4c8cc5
commit
d62b121a23
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue