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
d6cf14d7
Commit
d6cf14d7
authored
Jan 03, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jan 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for the listbox item height.
parent
a8d9c87c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
listbox.c
dlls/user/tests/listbox.c
+22
-0
No files found.
dlls/user/tests/listbox.c
View file @
d6cf14d7
...
...
@@ -137,6 +137,26 @@ check (const struct listbox_test test)
DestroyWindow
(
hLB
);
}
void
check_item_height
()
{
HWND
hLB
;
HDC
hdc
;
HFONT
font
;
TEXTMETRICW
tm
;
INT
itemHeight
;
hLB
=
create_listbox
(
0
);
ok
((
hdc
=
GetDCEx
(
hLB
,
0
,
DCX_CACHE
))
!=
0
,
"Can't get hdc
\n
"
);
ok
((
font
=
GetCurrentObject
(
hdc
,
OBJ_FONT
))
!=
0
,
"Can't get the current font
\n
"
);
ok
(
GetTextMetricsW
(
hdc
,
&
tm
),
"Can't read font metrics
\n
"
);
ReleaseDC
(
hLB
,
hdc
);
ok
(
SendMessageW
(
hLB
,
WM_SETFONT
,
(
WPARAM
)
font
,
0
)
==
0
,
"Can't set font
\n
"
);
itemHeight
=
SendMessageW
(
hLB
,
LB_GETITEMHEIGHT
,
0
,
0
);
ok
(
itemHeight
==
tm
.
tmHeight
,
"Item height wrong, got %d, expecting %ld
\n
"
,
itemHeight
,
tm
.
tmHeight
);
}
START_TEST
(
listbox
)
{
const
struct
listbox_test
SS
=
...
...
@@ -170,4 +190,6 @@ START_TEST(listbox)
check
(
MS
);
trace
(
" ... with NOSEL
\n
"
);
check
(
MS_NS
);
check_item_height
();
}
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