Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b52e0dc6
Commit
b52e0dc6
authored
Feb 18, 2022
by
Rafał Harabień
Committed by
Alexandre Julliard
Feb 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Check client rect in static control tests.
Signed-off-by:
Rafał Harabień
<
rafalh92@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
59e37ec4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
static.c
dlls/user32/tests/static.c
+11
-1
No files found.
dlls/user32/tests/static.c
View file @
b52e0dc6
...
...
@@ -80,7 +80,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
static
void
test_updates
(
int
style
,
int
flags
)
{
RECT
r1
=
{
20
,
20
,
30
,
30
};
RECT
r1
=
{
20
,
20
,
30
,
30
}
,
rcClient
;
HWND
hStatic
=
build_static
(
style
);
int
exp
;
LONG
exstyle
;
...
...
@@ -94,6 +94,16 @@ static void test_updates(int style, int flags)
else
ok
(
exstyle
==
0
,
"expected 0, got %d
\n
"
,
exstyle
);
GetClientRect
(
hStatic
,
&
rcClient
);
if
(
style
==
SS_ETCHEDVERT
)
todo_wine
ok
(
rcClient
.
right
==
0
,
"expected zero width, got %d
\n
"
,
rcClient
.
right
);
else
ok
(
rcClient
.
right
>
0
,
"expected non-zero width, got %d
\n
"
,
rcClient
.
right
);
if
(
style
==
SS_ETCHEDHORZ
)
todo_wine
ok
(
rcClient
.
bottom
==
0
,
"expected zero height, got %d
\n
"
,
rcClient
.
bottom
);
else
ok
(
rcClient
.
bottom
>
0
,
"expected non-zero height, got %d
\n
"
,
rcClient
.
bottom
);
g_nReceivedColorStatic
=
0
;
/* during each update parent WndProc will test the WM_CTLCOLORSTATIC message */
InvalidateRect
(
hMainWnd
,
NULL
,
FALSE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment