Commit a336b43a authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

comctl32/edit: Don't repaint immediately when getting focus.

Fix MSXML 3.0 installer username edit control missing part of its edge. The application has a static control overlapping an edit control. Repainting the edit control immediately will cause the edit control to be painted under the static control. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
parent 2a27ffe4
...@@ -3684,7 +3684,7 @@ static void EDIT_WM_NCPaint(HWND hwnd, HRGN region) ...@@ -3684,7 +3684,7 @@ static void EDIT_WM_NCPaint(HWND hwnd, HRGN region)
*/ */
static void EDIT_WM_SetFocus(HTHEME theme, EDITSTATE *es) static void EDIT_WM_SetFocus(HTHEME theme, EDITSTATE *es)
{ {
UINT flags = RDW_INVALIDATE | RDW_UPDATENOW; UINT flags = RDW_INVALIDATE;
es->flags |= EF_FOCUSED; es->flags |= EF_FOCUSED;
......
...@@ -3458,7 +3458,7 @@ static void test_change_focus(void) ...@@ -3458,7 +3458,7 @@ static void test_change_focus(void)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
SetFocus(hwnd); SetFocus(hwnd);
ok_sequence(sequences, COMBINED_SEQ_INDEX, setfocus_sent_only_combined_seq, ok_sequence(sequences, COMBINED_SEQ_INDEX, setfocus_sent_only_combined_seq,
"Set focus sent only", TRUE); "Set focus sent only", FALSE);
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
SetFocus(parent_wnd); SetFocus(parent_wnd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment