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
847c81df
Commit
847c81df
authored
Sep 28, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Determine whether to do label edit before sending NM_CLICK.
parent
02e850ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
treeview.c
dlls/comctl32/treeview.c
+9
-7
No files found.
dlls/comctl32/treeview.c
View file @
847c81df
...
...
@@ -3821,7 +3821,7 @@ TREEVIEW_LButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
{
HWND
hwnd
=
infoPtr
->
hwnd
;
TVHITTESTINFO
ht
;
BOOL
bTrack
;
BOOL
bTrack
,
bDoLabelEdit
;
HTREEITEM
tempItem
;
/* If Edit control is active - kill it and return.
...
...
@@ -3854,6 +3854,13 @@ TREEVIEW_LButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
bTrack
=
(
ht
.
flags
&
TVHT_ONITEM
)
&&
!
(
infoPtr
->
dwStyle
&
TVS_DISABLEDRAGDROP
);
/*
* If the style allows editing and the node is already selected
* and the click occurred on the item label...
*/
bDoLabelEdit
=
(
infoPtr
->
dwStyle
&
TVS_EDITLABELS
)
&&
(
ht
.
flags
&
TVHT_ONITEMLABEL
)
&&
(
infoPtr
->
selectedItem
==
ht
.
hItem
);
/* Send NM_CLICK right away */
if
(
!
bTrack
)
if
(
TREEVIEW_SendSimpleNotify
(
infoPtr
,
NM_CLICK
))
...
...
@@ -3890,12 +3897,7 @@ TREEVIEW_LButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
if
(
bTrack
&&
TREEVIEW_SendSimpleNotify
(
infoPtr
,
NM_CLICK
))
goto
setfocus
;
/*
* If the style allows editing and the node is already selected
* and the click occurred on the item label...
*/
if
((
infoPtr
->
dwStyle
&
TVS_EDITLABELS
)
&&
(
ht
.
flags
&
TVHT_ONITEMLABEL
)
&&
(
infoPtr
->
selectedItem
==
ht
.
hItem
))
if
(
bDoLabelEdit
)
{
if
(
infoPtr
->
Timer
&
TV_EDIT_TIMER_SET
)
KillTimer
(
hwnd
,
TV_EDIT_TIMER
);
...
...
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