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
42c5ff79
Commit
42c5ff79
authored
Jul 17, 2010
by
Florian Köberle
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Call TREEVIEW_SendExpanded after expanding.
parent
6521fc19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
treeview.c
dlls/comctl32/tests/treeview.c
+0
-1
treeview.c
dlls/comctl32/treeview.c
+9
-4
No files found.
dlls/comctl32/tests/treeview.c
View file @
42c5ff79
...
...
@@ -918,7 +918,6 @@ static LRESULT CALLBACK parent_wnd_proc(HWND hWnd, UINT message, WPARAM wParam,
visibleItem
=
TreeView_GetNextItem
(
pHdr
->
hwndFrom
,
visibleItem
,
TVGN_NEXTVISIBLE
);
*
(
HTREEITEM
*
)
&
rect
=
visibleItem
;
ok
(
visibleItem
!=
NULL
,
"There must be a visible item after the first visisble item.
\n
"
);
todo_wine
ok
(
SendMessage
(
pHdr
->
hwndFrom
,
TVM_GETITEMRECT
,
TRUE
,
(
LPARAM
)
&
rect
),
"Failed to get rect for second visible item.
\n
"
);
}
break
;
...
...
dlls/comctl32/treeview.c
View file @
42c5ff79
...
...
@@ -3279,6 +3279,7 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
LONG
orgNextTop
=
0
;
RECT
scrollRect
;
TREEVIEW_ITEM
*
nextItem
,
*
tmpItem
;
BOOL
sendsNotifications
;
TRACE
(
"(%p, %p, partial=%d, %d
\n
"
,
infoPtr
,
wineItem
,
bExpandPartial
,
bUser
);
...
...
@@ -3301,8 +3302,9 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
TRACE
(
"TVE_EXPAND %p %s
\n
"
,
wineItem
,
TREEVIEW_ItemName
(
wineItem
));
if
(
bUser
||
((
wineItem
->
cChildren
!=
0
)
&&
!
(
wineItem
->
state
&
TVIS_EXPANDEDONCE
)))
sendsNotifications
=
bUser
||
((
wineItem
->
cChildren
!=
0
)
&&
!
(
wineItem
->
state
&
TVIS_EXPANDEDONCE
));
if
(
sendsNotifications
)
{
if
(
!
TREEVIEW_SendExpanding
(
infoPtr
,
wineItem
,
TVE_EXPAND
))
{
...
...
@@ -3314,8 +3316,6 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
return
FALSE
;
wineItem
->
state
|=
TVIS_EXPANDED
;
TREEVIEW_SendExpanded
(
infoPtr
,
wineItem
,
TVE_EXPAND
);
wineItem
->
state
|=
TVIS_EXPANDEDONCE
;
}
else
{
...
...
@@ -3384,6 +3384,11 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
}
}
if
(
sendsNotifications
)
{
TREEVIEW_SendExpanded
(
infoPtr
,
wineItem
,
TVE_EXPAND
);
wineItem
->
state
|=
TVIS_EXPANDEDONCE
;
}
return
TRUE
;
}
...
...
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