Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3cfc2ab7
Commit
3cfc2ab7
authored
Sep 25, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Sep 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Forward the focus to the edit control if it exists.
parent
06439b30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
comboex.c
dlls/comctl32/comboex.c
+2
-1
comboex.c
dlls/comctl32/tests/comboex.c
+5
-0
No files found.
dlls/comctl32/comboex.c
View file @
3cfc2ab7
...
...
@@ -2308,7 +2308,8 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
COMBOEX_WindowPosChanging
(
infoPtr
,
(
WINDOWPOS
*
)
lParam
);
case
WM_SETFOCUS
:
SetFocus
(
infoPtr
->
hwndCombo
);
if
(
infoPtr
->
hwndEdit
)
SetFocus
(
infoPtr
->
hwndEdit
);
else
SetFocus
(
infoPtr
->
hwndCombo
);
return
0
;
case
WM_SYSCOLORCHANGE
:
...
...
dlls/comctl32/tests/comboex.c
View file @
3cfc2ab7
...
...
@@ -345,6 +345,11 @@ static void test_WM_LBUTTONDOWN(void)
"Current Selection: expected %d, got %d
\n
"
,
4
,
idx
);
ok
(
received_end_edit
,
"Expected to receive a CBEN_ENDEDIT message
\n
"
);
SetFocus
(
hComboExParentWnd
);
ok
(
GetFocus
()
==
hComboExParentWnd
,
"got %p
\n
"
,
GetFocus
()
);
SetFocus
(
hComboEx
);
ok
(
GetFocus
()
==
hEdit
,
"got %p
\n
"
,
GetFocus
()
);
DestroyWindow
(
hComboEx
);
}
...
...
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