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
4c2ad391
Commit
4c2ad391
authored
Nov 07, 2014
by
Huw Davies
Committed by
Alexandre Julliard
Nov 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make the combo's listbox a topmost window.
parent
8fe52db3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
1 deletion
+59
-1
combo.c
dlls/user32/combo.c
+1
-1
combo.c
dlls/user32/tests/combo.c
+58
-0
No files found.
dlls/user32/combo.c
View file @
4c2ad391
...
...
@@ -1059,7 +1059,7 @@ static void CBDropDown( LPHEADCOMBO lphc )
r
.
bottom
=
min
(
r
.
top
+
nDroppedHeight
,
mon_info
.
rcWork
.
bottom
);
}
SetWindowPos
(
lphc
->
hWndLBox
,
HWND_TOP
,
r
.
left
,
r
.
top
,
r
.
right
-
r
.
left
,
r
.
bottom
-
r
.
top
,
SetWindowPos
(
lphc
->
hWndLBox
,
HWND_TOP
MOST
,
r
.
left
,
r
.
top
,
r
.
right
-
r
.
left
,
r
.
bottom
-
r
.
top
,
SWP_NOACTIVATE
|
SWP_SHOWWINDOW
);
...
...
dlls/user32/tests/combo.c
View file @
4c2ad391
...
...
@@ -537,6 +537,61 @@ static void test_editselection(void)
DestroyWindow
(
hCombo
);
}
static
void
test_listbox_styles
(
DWORD
cb_style
)
{
BOOL
(
WINAPI
*
pGetComboBoxInfo
)(
HWND
,
PCOMBOBOXINFO
);
HWND
combo
;
COMBOBOXINFO
info
;
DWORD
style
,
exstyle
,
expect_style
,
expect_exstyle
;
BOOL
ret
;
pGetComboBoxInfo
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"user32.dll"
),
"GetComboBoxInfo"
);
if
(
!
pGetComboBoxInfo
){
win_skip
(
"GetComboBoxInfo is not available
\n
"
);
return
;
}
expect_style
=
WS_CHILD
|
WS_CLIPSIBLINGS
|
LBS_COMBOBOX
|
LBS_HASSTRINGS
|
LBS_NOTIFY
;
if
(
cb_style
==
CBS_SIMPLE
)
{
expect_style
|=
WS_VISIBLE
;
expect_exstyle
=
WS_EX_CLIENTEDGE
;
}
else
{
expect_style
|=
WS_BORDER
;
expect_exstyle
=
WS_EX_TOOLWINDOW
;
}
combo
=
build_combo
(
cb_style
);
info
.
cbSize
=
sizeof
(
COMBOBOXINFO
);
SetLastError
(
0xdeadbeef
);
ret
=
pGetComboBoxInfo
(
combo
,
&
info
);
ok
(
ret
,
"Failed to get combobox info structure.
\n
"
);
style
=
GetWindowLongW
(
info
.
hwndList
,
GWL_STYLE
);
exstyle
=
GetWindowLongW
(
info
.
hwndList
,
GWL_EXSTYLE
);
ok
(
style
==
expect_style
,
"%08x: got %08x
\n
"
,
cb_style
,
style
);
ok
(
exstyle
==
expect_exstyle
,
"%08x: got %08x
\n
"
,
cb_style
,
exstyle
);
if
(
cb_style
!=
CBS_SIMPLE
)
expect_exstyle
|=
WS_EX_TOPMOST
;
SendMessageW
(
combo
,
CB_SHOWDROPDOWN
,
TRUE
,
0
);
style
=
GetWindowLongW
(
info
.
hwndList
,
GWL_STYLE
);
exstyle
=
GetWindowLongW
(
info
.
hwndList
,
GWL_EXSTYLE
);
ok
(
style
==
(
expect_style
|
WS_VISIBLE
),
"%08x: got %08x
\n
"
,
cb_style
,
style
);
ok
(
exstyle
==
expect_exstyle
,
"%08x: got %08x
\n
"
,
cb_style
,
exstyle
);
SendMessageW
(
combo
,
CB_SHOWDROPDOWN
,
FALSE
,
0
);
style
=
GetWindowLongW
(
info
.
hwndList
,
GWL_STYLE
);
exstyle
=
GetWindowLongW
(
info
.
hwndList
,
GWL_EXSTYLE
);
ok
(
style
==
expect_style
,
"%08x: got %08x
\n
"
,
cb_style
,
style
);
ok
(
exstyle
==
expect_exstyle
,
"%08x: got %08x
\n
"
,
cb_style
,
exstyle
);
DestroyWindow
(
combo
);
}
START_TEST
(
combo
)
{
hMainWnd
=
CreateWindowA
(
"static"
,
"Test"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
300
,
300
,
NULL
,
NULL
,
NULL
,
0
);
...
...
@@ -551,6 +606,9 @@ START_TEST(combo)
test_changesize
(
CBS_DROPDOWN
);
test_changesize
(
CBS_DROPDOWNLIST
);
test_editselection
();
test_listbox_styles
(
CBS_SIMPLE
);
test_listbox_styles
(
CBS_DROPDOWN
);
test_listbox_styles
(
CBS_DROPDOWNLIST
);
DestroyWindow
(
hMainWnd
);
}
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