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
fbec0ba9
Commit
fbec0ba9
authored
Nov 04, 2019
by
Fabian Maurer
Committed by
Alexandre Julliard
Nov 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/combo: Properly handle WM_CTLCOLOR* messages.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1dc3ec2c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
combo.c
dlls/user32/combo.c
+12
-0
combo.c
dlls/user32/tests/combo.c
+0
-2
No files found.
dlls/user32/combo.c
View file @
fbec0ba9
...
...
@@ -1988,6 +1988,18 @@ LRESULT ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
if
(
GET_WHEEL_DELTA_WPARAM
(
wParam
)
<
0
)
return
SendMessageW
(
hwnd
,
WM_KEYDOWN
,
VK_DOWN
,
0
);
return
TRUE
;
case
WM_CTLCOLOR
:
case
WM_CTLCOLORMSGBOX
:
case
WM_CTLCOLOREDIT
:
case
WM_CTLCOLORLISTBOX
:
case
WM_CTLCOLORBTN
:
case
WM_CTLCOLORDLG
:
case
WM_CTLCOLORSCROLLBAR
:
case
WM_CTLCOLORSTATIC
:
if
(
lphc
->
owner
)
return
SendMessageW
(
lphc
->
owner
,
message
,
wParam
,
lParam
);
break
;
/* Combo messages */
case
CB_ADDSTRING
:
...
...
dlls/user32/tests/combo.c
View file @
fbec0ba9
...
...
@@ -854,7 +854,6 @@ static void test_combo_ctlcolor(void)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
messages
);
++
i
)
{
brush
=
(
HBRUSH
)
SendMessageA
(
combo
,
messages
[
i
],
0
,
(
LPARAM
)
info
.
hwndItem
);
todo_wine
ok
(
brush
==
brush_red
,
"%u: unexpected brush %p, expected got %p.
\n
"
,
i
,
brush
,
brush_red
);
}
...
...
@@ -865,7 +864,6 @@ static void test_combo_ctlcolor(void)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
messages
);
++
i
)
{
brush
=
(
HBRUSH
)
SendMessageA
(
combo
,
messages
[
i
],
0
,
(
LPARAM
)
info
.
hwndItem
);
todo_wine
ok
(
!
brush
,
"%u: unexpected brush %p.
\n
"
,
i
,
brush
);
}
...
...
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