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
7296bcd8
Commit
7296bcd8
authored
Dec 04, 2023
by
Brendan McGrath
Committed by
Alexandre Julliard
Dec 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add test for setitemsize return value.
parent
f03c3a16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
tab.c
dlls/comctl32/tests/tab.c
+25
-0
No files found.
dlls/comctl32/tests/tab.c
View file @
7296bcd8
...
@@ -674,6 +674,30 @@ static void test_width(void)
...
@@ -674,6 +674,30 @@ static void test_width(void)
test_tab
(
94
);
test_tab
(
94
);
}
}
static
void
test_setitemsize
(
void
)
{
HWND
hwTab
;
LRESULT
result
;
HDC
hdc
;
INT
dpi
;
hwTab
=
create_tabcontrol
(
0
,
TCIF_TEXT
);
SendMessageA
(
hwTab
,
TCM_SETMINTABWIDTH
,
0
,
-
1
);
hdc
=
GetDC
(
hwTab
);
dpi
=
GetDeviceCaps
(
hdc
,
LOGPIXELSX
);
ReleaseDC
(
hwTab
,
hdc
);
result
=
SendMessageA
(
hwTab
,
TCM_SETITEMSIZE
,
0
,
MAKELPARAM
(
50
,
20
));
todo_wine
ok
(
LOWORD
(
result
)
==
dpi
,
"Excepted width to be %d, got %d
\n
"
,
dpi
,
LOWORD
(
result
));
result
=
SendMessageA
(
hwTab
,
TCM_SETITEMSIZE
,
0
,
MAKELPARAM
(
0
,
1
));
todo_wine
ok
(
LOWORD
(
result
)
==
50
,
"Excepted width to be 50, got %d
\n
"
,
LOWORD
(
result
));
ok
(
HIWORD
(
result
)
==
20
,
"Excepted height to be 20, got %d
\n
"
,
HIWORD
(
result
));
DestroyWindow
(
hwTab
);
}
static
void
test_curfocus
(
void
)
static
void
test_curfocus
(
void
)
{
{
const
INT
nTabs
=
5
;
const
INT
nTabs
=
5
;
...
@@ -1581,6 +1605,7 @@ START_TEST(tab)
...
@@ -1581,6 +1605,7 @@ START_TEST(tab)
ok
(
parent_wnd
!=
NULL
,
"Failed to create parent window!
\n
"
);
ok
(
parent_wnd
!=
NULL
,
"Failed to create parent window!
\n
"
);
test_width
();
test_width
();
test_setitemsize
();
test_curfocus
();
test_curfocus
();
test_cursel
();
test_cursel
();
test_extendedstyle
();
test_extendedstyle
();
...
...
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