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
798afcf9
Commit
798afcf9
authored
Jul 03, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Jul 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix for ComboBoxEx bug caused by focus change.
parent
da0175ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
comboex.c
dlls/comctl32/comboex.c
+3
-0
comboex.c
dlls/comctl32/tests/comboex.c
+6
-6
No files found.
dlls/comctl32/comboex.c
View file @
798afcf9
...
...
@@ -1267,6 +1267,9 @@ static LRESULT COMBOEX_Command (COMBOEX_INFO *infoPtr, WPARAM wParam, LPARAM lPa
InvalidateRect
(
infoPtr
->
hwndCombo
,
0
,
0
);
return
0
;
case
CBN_SETFOCUS
:
return
SendMessageW
(
parent
,
WM_COMMAND
,
wParam
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
default:
/*
* We have to change the handle since we are the control
...
...
dlls/comctl32/tests/comboex.c
View file @
798afcf9
...
...
@@ -221,7 +221,7 @@ static void test_WM_LBUTTONDOWN(void)
result
=
SendMessage
(
hCombo
,
WM_LBUTTONDOWN
,
0
,
MAKELPARAM
(
x
,
y
));
ok
(
result
,
"WM_LBUTTONDOWN was not processed. LastError=%d
\n
"
,
GetLastError
());
todo_wine
ok
(
GetFocus
()
==
hCombo
,
ok
(
GetFocus
()
==
hCombo
,
"Focus not on ComboBoxEx's ComboBox Control, instead on %p
\n
"
,
GetFocus
());
ok
(
SendMessage
(
hComboEx
,
CB_GETDROPPEDSTATE
,
0
,
0
),
...
...
@@ -232,7 +232,7 @@ static void test_WM_LBUTTONDOWN(void)
result
=
SendMessage
(
hCombo
,
WM_LBUTTONUP
,
0
,
MAKELPARAM
(
x
,
y
));
ok
(
result
,
"WM_LBUTTONUP was not processed. LastError=%d
\n
"
,
GetLastError
());
todo_wine
ok
(
GetFocus
()
==
hCombo
,
ok
(
GetFocus
()
==
hCombo
,
"Focus not on ComboBoxEx's ComboBox Control, instead on %p
\n
"
,
GetFocus
());
...
...
@@ -244,23 +244,23 @@ static void test_WM_LBUTTONDOWN(void)
result
=
SendMessage
(
hList
,
WM_MOUSEMOVE
,
0
,
MAKELPARAM
(
x
,
y
));
ok
(
!
result
,
"WM_MOUSEMOVE was not processed. LastError=%d
\n
"
,
GetLastError
());
todo_wine
ok
(
GetFocus
()
==
hCombo
,
ok
(
GetFocus
()
==
hCombo
,
"Focus not on ComboBoxEx's ComboBox Control, instead on %p
\n
"
,
GetFocus
());
result
=
SendMessage
(
hList
,
WM_LBUTTONDOWN
,
0
,
MAKELPARAM
(
x
,
y
));
ok
(
!
result
,
"WM_LBUTTONDOWN was not processed. LastError=%d
\n
"
,
GetLastError
());
todo_wine
ok
(
GetFocus
()
==
hCombo
,
ok
(
GetFocus
()
==
hCombo
,
"Focus not on ComboBoxEx's ComboBox Control, instead on %p
\n
"
,
GetFocus
());
todo_wine
ok
(
SendMessage
(
hComboEx
,
CB_GETDROPPEDSTATE
,
0
,
0
),
ok
(
SendMessage
(
hComboEx
,
CB_GETDROPPEDSTATE
,
0
,
0
),
"The dropdown list should still be visible.
\n
"
);
result
=
SendMessage
(
hList
,
WM_LBUTTONUP
,
0
,
MAKELPARAM
(
x
,
y
));
ok
(
!
result
,
"WM_LBUTTONUP was not processed. LastError=%d
\n
"
,
GetLastError
());
ok
(
GetFocus
()
==
hEdit
,
todo_wine
ok
(
GetFocus
()
==
hEdit
,
"Focus not on ComboBoxEx's Edit Control, instead on %p
\n
"
,
GetFocus
());
ok
(
!
SendMessage
(
hCombo
,
CB_GETDROPPEDSTATE
,
0
,
0
),
...
...
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