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
861fb2ed
Commit
861fb2ed
authored
Aug 06, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Handle EN_KILLFOCUS in WM_COMMAND handler.
parent
578e872b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
treeview.c
dlls/comctl32/tests/treeview.c
+1
-1
treeview.c
dlls/comctl32/treeview.c
+4
-2
No files found.
dlls/comctl32/tests/treeview.c
View file @
861fb2ed
...
...
@@ -875,7 +875,7 @@ static void test_itemedit(void)
r
=
SendMessage
(
hTree
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
(
LPARAM
)
edit
);
expect
(
0
,
r
);
todo_wine
ok
(
!
IsWindow
(
edit
),
"Expected edit control to be destroyed
\n
"
);
ok
(
!
IsWindow
(
edit
),
"Expected edit control to be destroyed
\n
"
);
DestroyWindow
(
hTree
);
}
...
...
dlls/comctl32/treeview.c
View file @
861fb2ed
...
...
@@ -3637,6 +3637,9 @@ TREEVIEW_Command(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
ReleaseDC
(
infoPtr
->
hwnd
,
hdc
);
break
;
}
case
EN_KILLFOCUS
:
TREEVIEW_EndEditLabelNow
(
infoPtr
,
FALSE
);
break
;
default:
return
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_COMMAND
,
wParam
,
lParam
);
...
...
@@ -3757,8 +3760,7 @@ TREEVIEW_EndEditLabelNow(TREEVIEW_INFO *infoPtr, BOOL bCancel)
WCHAR
*
newText
=
tmpText
;
int
iLength
=
0
;
if
(
!
infoPtr
->
hwndEdit
)
return
FALSE
;
if
(
!
IsWindow
(
infoPtr
->
hwndEdit
))
return
FALSE
;
tvdi
.
hdr
.
hwndFrom
=
hwnd
;
tvdi
.
hdr
.
idFrom
=
GetWindowLongPtrW
(
hwnd
,
GWLP_ID
);
...
...
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