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
292d8429
Commit
292d8429
authored
Mar 06, 2003
by
Adam Gundy
Committed by
Alexandre Julliard
Mar 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TREEVIEW_UpdateScrollBars() now copes with an empty tree.
parent
d4fcc4bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
treeview.c
dlls/comctl32/treeview.c
+15
-6
No files found.
dlls/comctl32/treeview.c
View file @
292d8429
...
...
@@ -2690,14 +2690,23 @@ TREEVIEW_UpdateScrollBars(TREEVIEW_INFO *infoPtr)
if
(
vert
)
{
si
.
nPage
=
TREEVIEW_GetVisibleCount
(
infoPtr
);
si
.
nPos
=
infoPtr
->
firstVisible
->
visibleOrder
;
si
.
nMax
=
infoPtr
->
maxVisibleOrder
-
1
;
if
(
si
.
nPage
)
{
si
.
nPos
=
infoPtr
->
firstVisible
->
visibleOrder
;
si
.
nMax
=
infoPtr
->
maxVisibleOrder
-
1
;
SetScrollInfo
(
hwnd
,
SB_VERT
,
&
si
,
TRUE
);
SetScrollInfo
(
hwnd
,
SB_VERT
,
&
si
,
TRUE
);
if
(
!
(
infoPtr
->
uInternalStatus
&
TV_VSCROLL
))
ShowScrollBar
(
hwnd
,
SB_VERT
,
TRUE
);
infoPtr
->
uInternalStatus
|=
TV_VSCROLL
;
if
(
!
(
infoPtr
->
uInternalStatus
&
TV_VSCROLL
))
ShowScrollBar
(
hwnd
,
SB_VERT
,
TRUE
);
infoPtr
->
uInternalStatus
|=
TV_VSCROLL
;
}
else
{
if
(
infoPtr
->
uInternalStatus
&
TV_VSCROLL
)
ShowScrollBar
(
hwnd
,
SB_VERT
,
FALSE
);
infoPtr
->
uInternalStatus
&=
~
TV_VSCROLL
;
}
}
else
{
...
...
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