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
bb40b306
Commit
bb40b306
authored
Jul 21, 2003
by
Martin Fuchs
Committed by
Alexandre Julliard
Jul 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send TVN_ITEMEXPANDING when the user tries to expand a tree item
_before_ checking for child items.
parent
a1852bff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
treeview.c
dlls/comctl32/treeview.c
+11
-3
No files found.
dlls/comctl32/treeview.c
View file @
bb40b306
...
...
@@ -3123,12 +3123,15 @@ TREEVIEW_Collapse(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
TRACE
(
"TVE_COLLAPSE %p %s
\n
"
,
wineItem
,
TREEVIEW_ItemName
(
wineItem
));
if
(
!
(
wineItem
->
state
&
TVIS_EXPANDED
)
||
wineItem
->
firstChild
==
NULL
)
if
(
!
(
wineItem
->
state
&
TVIS_EXPANDED
))
return
FALSE
;
if
(
bUser
)
TREEVIEW_SendExpanding
(
infoPtr
,
wineItem
,
action
);
if
(
wineItem
->
firstChild
==
NULL
)
return
FALSE
;
wineItem
->
state
&=
~
TVIS_EXPANDED
;
if
(
bUser
)
...
...
@@ -3188,8 +3191,7 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
{
TRACE
(
"
\n
"
);
if
(
!
TREEVIEW_HasChildren
(
infoPtr
,
wineItem
)
||
wineItem
->
state
&
TVIS_EXPANDED
)
if
(
wineItem
->
state
&
TVIS_EXPANDED
)
return
FALSE
;
TRACE
(
"TVE_EXPAND %p %s
\n
"
,
wineItem
,
TREEVIEW_ItemName
(
wineItem
));
...
...
@@ -3202,12 +3204,18 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
return
FALSE
;
}
if
(
!
wineItem
->
firstChild
)
return
FALSE
;
wineItem
->
state
|=
TVIS_EXPANDED
;
TREEVIEW_SendExpanded
(
infoPtr
,
wineItem
,
TVE_EXPAND
);
wineItem
->
state
|=
TVIS_EXPANDEDONCE
;
}
else
{
if
(
!
wineItem
->
firstChild
)
return
FALSE
;
/* this item has already been expanded */
wineItem
->
state
|=
TVIS_EXPANDED
;
}
...
...
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