Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a4a60568
Commit
a4a60568
authored
Nov 12, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Nov 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fixed rebar layout tests that depend on system font widths.
parent
d6631760
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
36 deletions
+47
-36
rebar.c
dlls/comctl32/tests/rebar.c
+47
-36
No files found.
dlls/comctl32/tests/rebar.c
View file @
a4a60568
...
...
@@ -180,6 +180,17 @@ static void dump_sizes(HWND hRebar)
#else
static
int
string_width
(
const
CHAR
*
s
)
{
SIZE
sz
;
HDC
hdc
;
hdc
=
CreateCompatibleDC
(
NULL
);
GetTextExtentPoint32A
(
hdc
,
s
,
strlen
(
s
),
&
sz
);
DeleteDC
(
hdc
);
return
sz
.
cx
;
}
typedef
struct
{
RECT
rc
;
DWORD
fStyle
;
...
...
@@ -307,82 +318,82 @@ static void rbsize_results_init(void)
rbsize_results
[
12
]
=
rbsize_init
(
0
,
0
,
672
,
8
+
2
*
system_font_height
,
40
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
12
],
4
+
system_font_height
);
rbsize_add_row
(
&
rbsize_results
[
12
],
4
+
system_font_height
);
rbsize_add_band
(
&
rbsize_results
[
12
],
0
,
0
,
114
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
12
],
114
,
0
,
184
,
4
+
system_font_height
,
0x00
,
70
);
rbsize_add_band
(
&
rbsize_results
[
12
],
1
84
,
0
,
424
,
4
+
system_font_height
,
0x00
,
240
);
rbsize_add_band
(
&
rbsize_results
[
12
],
424
,
0
,
672
,
4
+
system_font_height
,
0x00
,
60
);
rbsize_add_band
(
&
rbsize_results
[
12
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
12
],
87
+
string_width
(
"ABC"
),
0
,
157
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
70
);
rbsize_add_band
(
&
rbsize_results
[
12
],
1
57
+
string_width
(
"ABC"
),
0
,
397
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
240
);
rbsize_add_band
(
&
rbsize_results
[
12
],
397
+
string_width
(
"ABC"
)
,
0
,
672
,
4
+
system_font_height
,
0x00
,
60
);
rbsize_add_band
(
&
rbsize_results
[
12
],
0
,
4
+
system_font_height
,
672
,
8
+
2
*
system_font_height
,
0x00
,
200
);
rbsize_results
[
13
]
=
rbsize_init
(
0
,
0
,
672
,
8
+
2
*
system_font_height
,
40
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
13
],
4
+
system_font_height
);
rbsize_add_row
(
&
rbsize_results
[
13
],
4
+
system_font_height
);
rbsize_add_band
(
&
rbsize_results
[
13
],
0
,
0
,
114
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
13
],
114
,
0
,
227
,
4
+
system_font_height
,
0x00
,
113
);
rbsize_add_band
(
&
rbsize_results
[
13
],
2
27
,
0
,
424
,
4
+
system_font_height
,
0x00
,
197
);
rbsize_add_band
(
&
rbsize_results
[
13
],
424
,
0
,
672
,
4
+
system_font_height
,
0x00
,
60
);
rbsize_add_band
(
&
rbsize_results
[
13
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
13
],
87
+
string_width
(
"ABC"
),
0
,
200
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
113
);
rbsize_add_band
(
&
rbsize_results
[
13
],
2
00
+
string_width
(
"ABC"
),
0
,
397
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
197
);
rbsize_add_band
(
&
rbsize_results
[
13
],
397
+
string_width
(
"ABC"
)
,
0
,
672
,
4
+
system_font_height
,
0x00
,
60
);
rbsize_add_band
(
&
rbsize_results
[
13
],
0
,
4
+
system_font_height
,
672
,
8
+
2
*
system_font_height
,
0x00
,
200
);
rbsize_results
[
14
]
=
rbsize_init
(
0
,
0
,
672
,
8
+
2
*
system_font_height
,
40
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
14
],
4
+
system_font_height
);
rbsize_add_row
(
&
rbsize_results
[
14
],
4
+
system_font_height
);
rbsize_add_band
(
&
rbsize_results
[
14
],
0
,
0
,
114
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
14
],
114
,
0
,
328
,
4
+
system_font_height
,
0x00
,
214
);
rbsize_add_band
(
&
rbsize_results
[
14
],
328
,
0
,
511
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
14
],
5
11
,
0
,
672
,
4
+
system_font_height
,
0x00
,
161
);
rbsize_add_band
(
&
rbsize_results
[
14
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
14
],
87
+
string_width
(
"ABC"
),
0
,
412
-
string_width
(
"MMMMMMM"
),
4
+
system_font_height
,
0x00
,
325
-
string_width
(
"ABC"
)
-
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
14
],
412
-
string_width
(
"MMMMMMM"
),
0
,
595
-
string_width
(
"MMMMMMM"
)
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
14
],
5
95
-
string_width
(
"MMMMMMM"
),
0
,
672
,
4
+
system_font_height
,
0x00
,
77
+
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
14
],
0
,
4
+
system_font_height
,
672
,
8
+
2
*
system_font_height
,
0x00
,
200
);
rbsize_results
[
15
]
=
rbsize_init
(
0
,
0
,
672
,
8
+
2
*
system_font_height
,
40
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
15
],
4
+
system_font_height
);
rbsize_add_row
(
&
rbsize_results
[
15
],
4
+
system_font_height
);
rbsize_add_band
(
&
rbsize_results
[
15
],
0
,
0
,
114
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
15
],
114
,
0
,
167
,
4
+
system_font_height
,
0x00
,
53
);
rbsize_add_band
(
&
rbsize_results
[
15
],
1
67
,
0
,
511
,
4
+
system_font_height
,
0x00
,
344
);
rbsize_add_band
(
&
rbsize_results
[
15
],
5
11
,
0
,
672
,
4
+
system_font_height
,
0x00
,
161
);
rbsize_add_band
(
&
rbsize_results
[
15
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
15
],
87
+
string_width
(
"ABC"
),
0
,
140
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
53
);
rbsize_add_band
(
&
rbsize_results
[
15
],
1
40
+
string_width
(
"ABC"
),
0
,
595
-
string_width
(
"MMMMMMM"
),
4
+
system_font_height
,
0x00
,
455
-
string_width
(
"MMMMMMM"
)
-
string_width
(
"ABC"
)
);
rbsize_add_band
(
&
rbsize_results
[
15
],
5
95
-
string_width
(
"MMMMMMM"
),
0
,
672
,
4
+
system_font_height
,
0x00
,
77
+
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
15
],
0
,
4
+
system_font_height
,
672
,
8
+
2
*
system_font_height
,
0x00
,
200
);
rbsize_results
[
16
]
=
rbsize_init
(
0
,
0
,
672
,
8
+
2
*
system_font_height
,
40
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
16
],
4
+
system_font_height
);
rbsize_add_row
(
&
rbsize_results
[
16
],
4
+
system_font_height
);
rbsize_add_band
(
&
rbsize_results
[
16
],
0
,
0
,
114
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
16
],
114
,
0
,
328
,
4
+
system_font_height
,
0x00
,
214
);
rbsize_add_band
(
&
rbsize_results
[
16
],
328
,
0
,
511
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
16
],
5
11
,
0
,
672
,
4
+
system_font_height
,
0x00
,
161
);
rbsize_add_band
(
&
rbsize_results
[
16
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
16
],
87
+
string_width
(
"ABC"
),
0
,
412
-
string_width
(
"MMMMMMM"
),
4
+
system_font_height
,
0x00
,
325
-
string_width
(
"ABC"
)
-
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
16
],
412
-
string_width
(
"MMMMMMM"
),
0
,
595
-
string_width
(
"MMMMMMM"
)
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
16
],
5
95
-
string_width
(
"MMMMMMM"
),
0
,
672
,
4
+
system_font_height
,
0x00
,
77
+
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
16
],
0
,
4
+
system_font_height
,
672
,
8
+
2
*
system_font_height
,
0x00
,
200
);
rbsize_results
[
17
]
=
rbsize_init
(
0
,
0
,
672
,
8
+
2
*
system_font_height
,
40
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
17
],
4
+
system_font_height
);
rbsize_add_row
(
&
rbsize_results
[
17
],
4
+
system_font_height
);
rbsize_add_band
(
&
rbsize_results
[
17
],
0
,
0
,
114
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
17
],
114
,
0
,
328
,
4
+
system_font_height
,
0x00
,
214
);
rbsize_add_band
(
&
rbsize_results
[
17
],
328
,
0
,
511
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
17
],
5
11
,
0
,
672
,
4
+
system_font_height
,
0x00
,
161
);
rbsize_add_band
(
&
rbsize_results
[
17
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
17
],
87
+
string_width
(
"ABC"
),
0
,
412
-
string_width
(
"MMMMMMM"
),
4
+
system_font_height
,
0x00
,
325
-
string_width
(
"ABC"
)
-
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
17
],
412
-
string_width
(
"MMMMMMM"
),
0
,
595
-
string_width
(
"MMMMMMM"
)
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
17
],
5
95
-
string_width
(
"MMMMMMM"
),
0
,
672
,
4
+
system_font_height
,
0x00
,
77
+
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
17
],
0
,
4
+
system_font_height
,
672
,
8
+
2
*
system_font_height
,
0x00
,
200
);
rbsize_results
[
18
]
=
rbsize_init
(
0
,
0
,
672
,
56
,
56
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
18
],
28
);
rbsize_add_row
(
&
rbsize_results
[
18
],
28
);
rbsize_add_band
(
&
rbsize_results
[
18
],
0
,
0
,
114
,
28
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
18
],
114
,
0
,
328
,
28
,
0x00
,
214
);
rbsize_add_band
(
&
rbsize_results
[
18
],
328
,
0
,
511
,
28
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
18
],
5
11
,
0
,
672
,
28
,
0x00
,
161
);
rbsize_add_band
(
&
rbsize_results
[
18
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
28
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
18
],
87
+
string_width
(
"ABC"
),
0
,
412
-
string_width
(
"MMMMMMM"
),
28
,
0x00
,
325
-
string_width
(
"ABC"
)
-
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
18
],
412
-
string_width
(
"MMMMMMM"
),
0
,
595
-
string_width
(
"MMMMMMM"
)
,
28
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
18
],
5
95
-
string_width
(
"MMMMMMM"
),
0
,
672
,
28
,
0x00
,
77
+
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
18
],
0
,
28
,
672
,
56
,
0x00
,
200
);
rbsize_results
[
19
]
=
rbsize_init
(
0
,
0
,
672
,
8
+
2
*
system_font_height
,
40
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
19
],
4
+
system_font_height
);
rbsize_add_row
(
&
rbsize_results
[
19
],
4
+
system_font_height
);
rbsize_add_band
(
&
rbsize_results
[
19
],
0
,
0
,
114
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
19
],
114
,
0
,
328
,
4
+
system_font_height
,
0x00
,
214
);
rbsize_add_band
(
&
rbsize_results
[
19
],
328
,
0
,
511
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
19
],
5
11
,
0
,
672
,
4
+
system_font_height
,
0x00
,
161
);
rbsize_add_band
(
&
rbsize_results
[
19
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
4
+
system_font_height
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
19
],
87
+
string_width
(
"ABC"
),
0
,
412
-
string_width
(
"MMMMMMM"
),
4
+
system_font_height
,
0x00
,
325
-
string_width
(
"ABC"
)
-
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
19
],
412
-
string_width
(
"MMMMMMM"
),
0
,
595
-
string_width
(
"MMMMMMM"
)
,
4
+
system_font_height
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
19
],
5
95
-
string_width
(
"MMMMMMM"
),
0
,
672
,
4
+
system_font_height
,
0x00
,
77
+
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
19
],
0
,
4
+
system_font_height
,
672
,
8
+
2
*
system_font_height
,
0x00
,
200
);
rbsize_results
[
20
]
=
rbsize_init
(
0
,
0
,
672
,
56
,
56
,
2
,
5
);
rbsize_add_row
(
&
rbsize_results
[
20
],
28
);
rbsize_add_row
(
&
rbsize_results
[
20
],
28
);
rbsize_add_band
(
&
rbsize_results
[
20
],
0
,
0
,
114
,
28
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
20
],
114
,
0
,
328
,
28
,
0x00
,
214
);
rbsize_add_band
(
&
rbsize_results
[
20
],
328
,
0
,
511
,
28
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
20
],
511
,
0
,
672
,
28
,
0x00
,
161
);
rbsize_add_band
(
&
rbsize_results
[
20
],
0
,
0
,
87
+
string_width
(
"ABC"
)
,
28
,
0x00
,
40
);
rbsize_add_band
(
&
rbsize_results
[
20
],
87
+
string_width
(
"ABC"
),
0
,
412
-
string_width
(
"MMMMMMM"
),
28
,
0x00
,
325
-
string_width
(
"ABC"
)
-
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
20
],
412
-
string_width
(
"MMMMMMM"
),
0
,
595
-
string_width
(
"MMMMMMM"
)
,
28
,
0x00
,
183
);
rbsize_add_band
(
&
rbsize_results
[
20
],
595
-
string_width
(
"MMMMMMM"
),
0
,
672
,
28
,
0x00
,
77
+
string_width
(
"MMMMMMM"
)
);
rbsize_add_band
(
&
rbsize_results
[
20
],
0
,
28
,
672
,
56
,
0x00
,
200
);
rbsize_results
[
21
]
=
rbsize_init
(
0
,
0
,
672
,
0
,
0
,
0
,
0
);
...
...
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