riched20: Don't call UpdateWindow after setting the background color.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alex Henrie 2016-05-09 08:57:12 -06:00 committed by Alexandre Julliard
parent a36b5f0741
commit e60b276698
2 changed files with 12 additions and 1 deletions

View File

@ -3626,7 +3626,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
editor->hbrBackground = CreateSolidBrush(editor->rgbBackColor);
}
ITextHost_TxInvalidateRect(editor->texthost, NULL, TRUE);
ITextHost_TxViewChange(editor->texthost, TRUE);
return lColor;
}
case EM_GETMODIFY:

View File

@ -8337,6 +8337,17 @@ static void test_rtf_specials(void)
DestroyWindow( edit );
}
static void test_background(void)
{
HWND hwndRichEdit = new_richedit(NULL);
/* set the background color to black */
ValidateRect(hwndRichEdit, NULL);
SendMessageA(hwndRichEdit, EM_SETBKGNDCOLOR, FALSE, RGB(0, 0, 0));
ok(GetUpdateRect(hwndRichEdit, NULL, FALSE), "Update rectangle is empty!\n");
DestroyWindow(hwndRichEdit);
}
START_TEST( editor )
{
@ -8408,6 +8419,7 @@ START_TEST( editor )
test_EM_SETFONTSIZE();
test_alignment_style();
test_rtf_specials();
test_background();
/* Set the environment variable WINETEST_RICHED20 to keep windows
* responsive and open for 30 seconds. This is useful for debugging.