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
ca1c64d3
Commit
ca1c64d3
authored
Nov 11, 2017
by
Fabian Maurer
Committed by
Alexandre Julliard
Nov 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test manually setting WS_VSCROLL on combobox listbox.
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa7941d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
combo.c
dlls/user32/tests/combo.c
+43
-0
No files found.
dlls/user32/tests/combo.c
View file @
ca1c64d3
...
...
@@ -806,11 +806,54 @@ static void test_listbox_size(DWORD style)
}
}
void
test_WS_VSCROLL
(
void
)
{
BOOL
(
WINAPI
*
pGetComboBoxInfo
)(
HWND
,
PCOMBOBOXINFO
);
HWND
hCombo
,
hList
;
COMBOBOXINFO
info
;
DWORD
style
;
BOOL
ret
;
int
i
;
pGetComboBoxInfo
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"user32.dll"
),
"GetComboBoxInfo"
);
if
(
!
pGetComboBoxInfo
)
{
win_skip
(
"GetComboBoxInfo is not available
\n
"
);
return
;
}
info
.
cbSize
=
sizeof
(
info
);
hCombo
=
build_combo
(
CBS_DROPDOWNLIST
);
SetLastError
(
0xdeadbeef
);
ret
=
pGetComboBoxInfo
(
hCombo
,
&
info
);
ok
(
ret
,
"Failed to get COMBOBOXINFO structure; LastError: %u
\n
"
,
GetLastError
());
hList
=
info
.
hwndList
;
for
(
i
=
0
;
i
<
3
;
i
++
)
{
char
buffer
[
2
];
sprintf
(
buffer
,
"%d"
,
i
);
SendMessageA
(
hCombo
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
buffer
);
}
style
=
GetWindowLongA
(
info
.
hwndList
,
GWL_STYLE
);
SetWindowLongA
(
hList
,
GWL_STYLE
,
style
|
WS_VSCROLL
);
SendMessageA
(
hCombo
,
CB_SHOWDROPDOWN
,
TRUE
,
0
);
SendMessageA
(
hCombo
,
CB_SHOWDROPDOWN
,
FALSE
,
0
);
style
=
GetWindowLongA
(
hList
,
GWL_STYLE
);
ok
((
style
&
WS_VSCROLL
)
!=
0
,
"Style does not include WS_VSCROLL
\n
"
);
DestroyWindow
(
hCombo
);
}
START_TEST
(
combo
)
{
hMainWnd
=
CreateWindowA
(
"static"
,
"Test"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
300
,
300
,
NULL
,
NULL
,
NULL
,
0
);
ShowWindow
(
hMainWnd
,
SW_SHOW
);
test_WS_VSCROLL
();
test_setfont
(
CBS_DROPDOWN
);
test_setfont
(
CBS_DROPDOWNLIST
);
test_setitemheight
(
CBS_DROPDOWN
);
...
...
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