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
f5f07638
Commit
f5f07638
authored
Nov 21, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't forward WM_COMMAND (EN_KILLFOCUS) from Edit to parent window.
parent
c3926896
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
listview.c
dlls/comctl32/listview.c
+1
-0
listview.c
dlls/comctl32/tests/listview.c
+17
-0
No files found.
dlls/comctl32/listview.c
View file @
f5f07638
...
...
@@ -11409,6 +11409,7 @@ static LRESULT LISTVIEW_Command(LISTVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lP
case
EN_KILLFOCUS
:
{
LISTVIEW_CancelEditLabel
(
infoPtr
);
break
;
}
default:
...
...
dlls/comctl32/tests/listview.c
View file @
f5f07638
...
...
@@ -271,6 +271,13 @@ static const struct message lvs_ex_transparentbkgnd_seq[] = {
{
0
}
};
static
const
struct
message
edit_end_nochange
[]
=
{
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ENDLABELEDITA
},
/* todo */
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
NM_CUSTOMDRAW
},
/* todo */
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
NM_SETFOCUS
},
{
0
}
};
static
LRESULT
WINAPI
parent_wnd_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
static
LONG
defwndproc_counter
=
0
;
...
...
@@ -3473,6 +3480,16 @@ static void test_editbox(void)
ok_sequence
(
sequences
,
EDITBOX_SEQ_INDEX
,
editbox_create_pos
,
"edit box create - sizing"
,
FALSE
);
/* WM_COMMAND with EN_KILLFOCUS isn't forwared to parent */
SetFocus
(
hwnd
);
hwndedit
=
(
HWND
)
SendMessage
(
hwnd
,
LVM_EDITLABEL
,
0
,
0
);
ok
(
IsWindow
(
hwndedit
),
"Expected Edit window to be created
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
r
=
SendMessage
(
hwnd
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
(
LPARAM
)
hwndedit
);
expect
(
0
,
r
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
edit_end_nochange
,
"edit box WM_COMMAND (EN_KILLFOCUS)"
,
TRUE
);
DestroyWindow
(
hwnd
);
}
...
...
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