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
5d708246
Commit
5d708246
authored
May 20, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't forward WM_COMMAND to parent if we don't have an Edit box.
parent
c79aad51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
listview.c
dlls/comctl32/listview.c
+6
-1
listview.c
dlls/comctl32/tests/listview.c
+16
-0
No files found.
dlls/comctl32/listview.c
View file @
5d708246
...
...
@@ -11029,7 +11029,7 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
LISTVIEW_INFO
*
infoPtr
=
(
LISTVIEW_INFO
*
)
GetWindowLongPtrW
(
hwnd
,
0
);
TRACE
(
"(
uMsg=%x wParam=%lx lParam=%lx)
\n
"
,
uMsg
,
wParam
,
lParam
);
TRACE
(
"(
hwnd=%p uMsg=%x wParam=%lx lParam=%lx)
\n
"
,
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
infoPtr
&&
(
uMsg
!=
WM_NCCREATE
))
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
@@ -11589,6 +11589,11 @@ void LISTVIEW_Unregister(void)
*/
static
LRESULT
LISTVIEW_Command
(
LISTVIEW_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TRACE
(
"(%p %x %x %lx)
\n
"
,
infoPtr
,
HIWORD
(
wParam
),
LOWORD
(
wParam
),
lParam
);
if
(
!
infoPtr
->
hwndEdit
)
return
0
;
switch
(
HIWORD
(
wParam
))
{
case
EN_UPDATE
:
...
...
dlls/comctl32/tests/listview.c
View file @
5d708246
...
...
@@ -3496,6 +3496,22 @@ static void test_editbox(void)
r
=
SendMessage
(
hwnd
,
LVM_INSERTITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
0
,
r
);
/* test notifications without edit created */
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
r
=
SendMessage
(
hwnd
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_SETFOCUS
),
(
LPARAM
)
0xdeadbeef
);
expect
(
0
,
r
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"edit box WM_COMMAND (EN_SETFOCUS), no edit created"
,
FALSE
);
/* same thing but with valid window */
hwndedit
=
CreateWindowA
(
"Edit"
,
"Test edit"
,
WS_VISIBLE
|
WS_CHILD
,
0
,
0
,
20
,
10
,
hwnd
,
(
HMENU
)
1
,
(
HINSTANCE
)
GetWindowLongPtrA
(
hwnd
,
GWLP_HINSTANCE
),
0
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
r
=
SendMessage
(
hwnd
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_SETFOCUS
),
(
LPARAM
)
hwndedit
);
expect
(
0
,
r
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"edit box WM_COMMAND (EN_SETFOCUS), no edit created #2"
,
FALSE
);
DestroyWindow
(
hwndedit
);
/* setting focus is necessary */
SetFocus
(
hwnd
);
hwndedit
=
(
HWND
)
SendMessage
(
hwnd
,
LVM_EDITLABEL
,
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