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: Zhiyi Zhang <zzhang@codeweavers.com>
(cherry picked from commit a336b43a93
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
e83b7ecf8b
commit
9b7d51640b
2 changed files with 2 additions and 2 deletions
|
@ -3684,7 +3684,7 @@ static void EDIT_WM_NCPaint(HWND hwnd, HRGN region)
|
|||
*/
|
||||
static void EDIT_WM_SetFocus(HTHEME theme, EDITSTATE *es)
|
||||
{
|
||||
UINT flags = RDW_INVALIDATE | RDW_UPDATENOW;
|
||||
UINT flags = RDW_INVALIDATE;
|
||||
|
||||
es->flags |= EF_FOCUSED;
|
||||
|
||||
|
|
|
@ -3454,7 +3454,7 @@ static void test_change_focus(void)
|
|||
flush_sequences(sequences, NUM_MSG_SEQUENCES);
|
||||
SetFocus(hwnd);
|
||||
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);
|
||||
SetFocus(parent_wnd);
|
||||
|
|
Loading…
Add table
Reference in a new issue