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
6a4fb894
Commit
6a4fb894
authored
Nov 24, 2023
by
Brendan McGrath
Committed by
Alexandre Julliard
Dec 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Modify test_width to try different fonts.
parent
8934a53e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
tab.c
dlls/comctl32/tests/tab.c
+33
-10
No files found.
dlls/comctl32/tests/tab.c
View file @
6a4fb894
...
...
@@ -676,16 +676,39 @@ static void test_tab(INT nMinTabWidth)
static
void
test_width
(
void
)
{
trace
(
"Testing with default MinWidth
\n
"
);
test_tab
(
-
1
);
trace
(
"Testing with MinWidth set to -3
\n
"
);
test_tab
(
-
3
);
trace
(
"Testing with MinWidth set to 24
\n
"
);
test_tab
(
24
);
trace
(
"Testing with MinWidth set to 54
\n
"
);
test_tab
(
54
);
trace
(
"Testing with MinWidth set to 94
\n
"
);
test_tab
(
94
);
HFONT
oldFont
=
hFont
;
const
char
*
fonts
[]
=
{
"System"
,
"Arial"
,
"Tahoma"
,
"Courier New"
,
"MS Shell Dlg"
,
};
LOGFONTA
logfont
=
{
.
lfHeight
=
-
12
,
.
lfWeight
=
FW_NORMAL
,
.
lfCharSet
=
ANSI_CHARSET
};
for
(
int
i
=
0
;
i
<
sizeof
(
fonts
)
/
sizeof
(
fonts
[
0
]);
i
++
)
{
trace
(
"Testing with the '%s' font
\n
"
,
fonts
[
i
]);
lstrcpyA
(
logfont
.
lfFaceName
,
fonts
[
i
]);
hFont
=
CreateFontIndirectA
(
&
logfont
);
trace
(
"Testing with default MinWidth
\n
"
);
test_tab
(
-
1
);
trace
(
"Testing with MinWidth set to -3
\n
"
);
test_tab
(
-
3
);
trace
(
"Testing with MinWidth set to 24
\n
"
);
test_tab
(
24
);
trace
(
"Testing with MinWidth set to 54
\n
"
);
test_tab
(
54
);
trace
(
"Testing with MinWidth set to 94
\n
"
);
test_tab
(
94
);
}
hFont
=
oldFont
;
}
static
void
test_setitemsize
(
void
)
...
...
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