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
4b40a7dc
Commit
4b40a7dc
authored
May 24, 2000
by
Aric Stewart
Committed by
Alexandre Julliard
May 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added handling for TVS_SINGLEEXPAND.
parent
6274a7ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
1 deletion
+48
-1
treeview.c
dlls/comctl32/treeview.c
+48
-1
No files found.
dlls/comctl32/treeview.c
View file @
4b40a7dc
...
@@ -3212,6 +3212,7 @@ TREEVIEW_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -3212,6 +3212,7 @@ TREEVIEW_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
INT
iItem
;
INT
iItem
;
TREEVIEW_ITEM
*
wineItem
;
TREEVIEW_ITEM
*
wineItem
;
TVHITTESTINFO
ht
;
TVHITTESTINFO
ht
;
DWORD
dwStyle
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
ht
.
pt
.
x
=
(
INT
)
LOWORD
(
lParam
);
ht
.
pt
.
x
=
(
INT
)
LOWORD
(
lParam
);
ht
.
pt
.
y
=
(
INT
)
HIWORD
(
lParam
);
ht
.
pt
.
y
=
(
INT
)
HIWORD
(
lParam
);
...
@@ -3230,6 +3231,53 @@ TREEVIEW_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -3230,6 +3231,53 @@ TREEVIEW_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
wineItem
=
TREEVIEW_ValidItem
(
infoPtr
,
(
HTREEITEM
)
iItem
);
wineItem
=
TREEVIEW_ValidItem
(
infoPtr
,
(
HTREEITEM
)
iItem
);
/*
* if we are TVS_SINGLEEXPAND then we want this single click to
* do a bunch of things.
*/
if
((
dwStyle
&
TVS_SINGLEEXPAND
)
&&
(
ht
.
flags
&
(
TVHT_ONITEMLABEL
|
TVHT_ONITEMICON
))
&&
(
infoPtr
->
editItem
==
0
))
{
TREEVIEW_ITEM
*
SelItem
;
/*
* Send the notification
*/
TREEVIEW_SendTreeviewNotify
(
hwnd
,
TVN_SINGLEEXPAND
,
0
,
(
HTREEITEM
)
iItem
,
0
);
/*
* Close the previous selection all the way to the root
* as long as the new selection is not a child
*/
if
((
infoPtr
->
selectedItem
)
&&
(
infoPtr
->
selectedItem
!=
(
HTREEITEM
)
iItem
))
{
BOOL
closeit
=
TRUE
;
SelItem
=
wineItem
;
while
(
closeit
&&
SelItem
)
{
closeit
=
(
SelItem
->
hItem
!=
infoPtr
->
selectedItem
);
SelItem
=
TREEVIEW_ValidItem
(
infoPtr
,
SelItem
->
parent
);
}
if
(
closeit
)
{
SelItem
=
TREEVIEW_ValidItem
(
infoPtr
,
infoPtr
->
selectedItem
);
while
((
SelItem
)
&&
(
SelItem
->
hItem
!=
wineItem
->
hItem
))
{
TREEVIEW_Expand
(
hwnd
,(
WPARAM
)
TVE_COLLAPSE
,(
LPARAM
)
SelItem
->
hItem
);
SelItem
=
TREEVIEW_ValidItem
(
infoPtr
,
SelItem
->
parent
);
}
}
}
/*
* Expand the current item
*/
TREEVIEW_Expand
(
hwnd
,
(
WPARAM
)
TVE_TOGGLE
,
(
LPARAM
)
wineItem
->
hItem
);
}
infoPtr
->
uInternalStatus
&=
~
(
TV_LDRAG
|
TV_LDRAGGING
);
infoPtr
->
uInternalStatus
&=
~
(
TV_LDRAG
|
TV_LDRAGGING
);
/*
/*
...
@@ -3256,7 +3304,6 @@ TREEVIEW_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -3256,7 +3304,6 @@ TREEVIEW_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
if
(
ht
.
flags
&
TVHT_ONITEMSTATEICON
)
{
if
(
ht
.
flags
&
TVHT_ONITEMSTATEICON
)
{
DWORD
dwStyle
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
if
(
dwStyle
&
TVS_CHECKBOXES
)
{
/* TVS_CHECKBOXES requires _us_ */
if
(
dwStyle
&
TVS_CHECKBOXES
)
{
/* TVS_CHECKBOXES requires _us_ */
...
...
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