Module: wine
Branch: master
Commit: c1c6b4bcf269c5e5e371513ca219830691851829
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c1c6b4bcf269c5e5e371513c…
Author: Rafał Harabień <rafalh92(a)outlook.com>
Date: Sun Apr 3 01:37:36 2022 +0200
comctl32/tests: Fix invalidation in static control tests.
Rectangle used for invalidation was outside of windows rect of static
controls with SS_ETCHEDHORZ/SS_ETCHEDVERT style because they resize
after creation. Improve test by changing the invalidated rect and
add more details in comment about SS_ETCHEDHORZ/SS_ETCHEDVERT styles.
Signed-off-by: Rafał Harabień <rafalh92(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/comctl32/tests/static.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/static.c b/dlls/comctl32/tests/static.c
index c8975419b7c..bdae6744aa4 100644
--- a/dlls/comctl32/tests/static.c
+++ b/dlls/comctl32/tests/static.c
@@ -82,7 +82,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
static void test_updates(int style, int flags)
{
HWND hStatic = create_static(style);
- RECT r1 = {20, 20, 30, 30}, rcClient;
+ RECT r1 = {5, 5, 30, 30}, rcClient;
int exp;
LONG exstyle;
@@ -128,7 +128,7 @@ static void test_updates(int style, int flags)
if (style != SS_ETCHEDHORZ && style != SS_ETCHEDVERT)
exp = 4;
else
- exp = 1; /* SS_ETCHED* seems to send WM_CTLCOLORSTATIC only sometimes */
+ exp = 2; /* SS_ETCHEDHORZ/SS_ETCHEDVERT have empty client rect so WM_CTLCOLORSTATIC is sent only when parent window is invalidated */
if (flags & TODO_COUNT)
todo_wine