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
30fa4cb5
Commit
30fa4cb5
authored
Jun 23, 2011
by
Jay Yang
Committed by
Alexandre Julliard
Jun 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Make ComboBoxEx send CBEN_ENDEDIT when selecting from the dropdown list.
parent
583641bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
comboex.c
dlls/comctl32/comboex.c
+1
-1
comboex.c
dlls/comctl32/tests/comboex.c
+29
-1
No files found.
dlls/comctl32/comboex.c
View file @
30fa4cb5
...
...
@@ -1122,8 +1122,8 @@ static LRESULT COMBOEX_Command (COMBOEX_INFO *infoPtr, WPARAM wParam)
case
CBN_DROPDOWN
:
SetFocus
(
infoPtr
->
hwndCombo
);
ShowWindow
(
infoPtr
->
hwndEdit
,
SW_HIDE
);
infoPtr
->
flags
|=
WCBE_ACTEDIT
;
return
SendMessageW
(
parent
,
WM_COMMAND
,
wParam
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
case
CBN_CLOSEUP
:
SendMessageW
(
parent
,
WM_COMMAND
,
wParam
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
/*
...
...
dlls/comctl32/tests/comboex.c
View file @
30fa4cb5
...
...
@@ -42,6 +42,8 @@ static BOOL (WINAPI *pSetWindowSubclass)(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR
#define MAX_CHARS 100
static
char
*
textBuffer
=
NULL
;
static
BOOL
received_end_edit
=
FALSE
;
static
HWND
createComboEx
(
DWORD
style
)
{
return
CreateWindowExA
(
0
,
WC_COMBOBOXEXA
,
NULL
,
style
,
0
,
0
,
300
,
300
,
hComboExParentWnd
,
NULL
,
hMainHinst
,
NULL
);
...
...
@@ -341,6 +343,7 @@ static void test_WM_LBUTTONDOWN(void)
ok
(
idx
==
4
||
broken
(
idx
==
-
1
),
/* win98 */
"Current Selection: expected %d, got %d
\n
"
,
4
,
idx
);
ok
(
received_end_edit
,
"Expected to receive a CBEN_ENDEDIT message
\n
"
);
DestroyWindow
(
hComboEx
);
}
...
...
@@ -427,6 +430,30 @@ static void test_WM_WINDOWPOSCHANGING(void)
ok
(
ret
,
"DestroyWindow failed
\n
"
);
}
static
LRESULT
ComboExTestOnNotify
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
NMHDR
*
hdr
=
(
NMHDR
*
)
lParam
;
switch
(
hdr
->
code
){
case
CBEN_ENDEDITA
:
{
NMCBEENDEDITA
*
edit_info
=
(
NMCBEENDEDITA
*
)
hdr
;
if
(
edit_info
->
iWhy
==
CBENF_DROPDOWN
){
received_end_edit
=
TRUE
;
}
break
;
}
case
CBEN_ENDEDITW
:
{
NMCBEENDEDITW
*
edit_info
=
(
NMCBEENDEDITW
*
)
hdr
;
if
(
edit_info
->
iWhy
==
CBENF_DROPDOWN
){
received_end_edit
=
TRUE
;
}
break
;
}
}
return
0
;
}
static
LRESULT
CALLBACK
ComboExTestWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
msg
)
{
...
...
@@ -434,7 +461,8 @@ static LRESULT CALLBACK ComboExTestWndProc(HWND hWnd, UINT msg, WPARAM wParam, L
case
WM_DESTROY
:
PostQuitMessage
(
0
);
break
;
case
WM_NOTIFY
:
return
ComboExTestOnNotify
(
hWnd
,
msg
,
wParam
,
lParam
);
default:
return
DefWindowProcA
(
hWnd
,
msg
,
wParam
,
lParam
);
}
...
...
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