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
84e7547e
Commit
84e7547e
authored
Jan 21, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Jan 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the selection to the previous sibling if it can't go to the next
or the parent. Fix the selection change logic.
parent
0f3d8bf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
treeview.c
dlls/comctl32/treeview.c
+6
-6
No files found.
dlls/comctl32/treeview.c
View file @
84e7547e
...
...
@@ -1440,8 +1440,7 @@ TREEVIEW_RemoveTree(TREEVIEW_INFO *infoPtr)
static
LRESULT
TREEVIEW_DeleteItem
(
TREEVIEW_INFO
*
infoPtr
,
HTREEITEM
wineItem
)
{
TREEVIEW_ITEM
*
oldSelection
=
infoPtr
->
selectedItem
;
TREEVIEW_ITEM
*
newSelection
=
oldSelection
;
TREEVIEW_ITEM
*
newSelection
=
NULL
;
TREEVIEW_ITEM
*
newFirstVisible
=
NULL
;
TREEVIEW_ITEM
*
parent
,
*
prev
=
NULL
;
BOOL
visible
=
FALSE
;
...
...
@@ -1476,6 +1475,9 @@ TREEVIEW_DeleteItem(TREEVIEW_INFO *infoPtr, HTREEITEM wineItem)
newSelection
=
wineItem
->
nextSibling
;
else
if
(
wineItem
->
parent
!=
infoPtr
->
root
)
newSelection
=
wineItem
->
parent
;
else
newSelection
=
wineItem
->
prevSibling
;
TRACE
(
"newSelection = %p
\n
"
,
newSelection
);
}
if
(
infoPtr
->
firstVisible
==
wineItem
)
...
...
@@ -1494,13 +1496,11 @@ TREEVIEW_DeleteItem(TREEVIEW_INFO *infoPtr, HTREEITEM wineItem)
TREEVIEW_RemoveItem
(
infoPtr
,
wineItem
);
}
/* Don't change if somebody else already has. */
if
(
oldSelection
==
infoPtr
->
selectedItem
)
/* Don't change if somebody else already has
(infoPtr->selectedItem is cleared by FreeItem)
. */
if
(
!
infoPtr
->
selectedItem
&&
newSelection
)
{
if
(
TREEVIEW_ValidItem
(
infoPtr
,
newSelection
))
TREEVIEW_DoSelectItem
(
infoPtr
,
TVGN_CARET
,
newSelection
,
TVC_UNKNOWN
);
else
infoPtr
->
selectedItem
=
0
;
}
/* Validate insertMark dropItem.
...
...
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