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
ed669305
Commit
ed669305
authored
Sep 12, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Sep 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetScrollInfo : don't show/hide scrollbar if no parameter (minval,
maxval) change.
parent
7f04a17e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
scroll.c
controls/scroll.c
+6
-2
No files found.
controls/scroll.c
View file @
ed669305
...
...
@@ -1278,6 +1278,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
SCROLLBAR_INFO
*
infoPtr
;
UINT
new_flags
;
BOOL
bChangeParams
=
FALSE
;
/* don't show/hide scrollbar if params don't change */
*
action
=
0
;
...
...
@@ -1303,6 +1304,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
{
infoPtr
->
Page
=
info
->
nPage
;
*
action
|=
SA_SSI_REFRESH
;
bChangeParams
=
TRUE
;
}
}
...
...
@@ -1327,6 +1329,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
{
infoPtr
->
MinVal
=
0
;
infoPtr
->
MaxVal
=
0
;
bChangeParams
=
TRUE
;
}
else
{
...
...
@@ -1336,6 +1339,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
*
action
|=
SA_SSI_REFRESH
;
infoPtr
->
MinVal
=
info
->
nMin
;
infoPtr
->
MaxVal
=
info
->
nMax
;
bChangeParams
=
TRUE
;
}
}
}
...
...
@@ -1375,7 +1379,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
new_flags
=
ESB_DISABLE_BOTH
;
*
action
|=
SA_SSI_REFRESH
;
}
else
if
(
nBar
!=
SB_CTL
)
else
if
(
(
nBar
!=
SB_CTL
)
&&
bChangeParams
)
{
*
action
=
SA_SSI_HIDE
;
goto
done
;
...
...
@@ -1384,7 +1388,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
else
/* Show and enable scroll-bar */
{
new_flags
=
0
;
if
(
nBar
!=
SB_CTL
)
if
(
(
nBar
!=
SB_CTL
)
&&
bChangeParams
)
*
action
|=
SA_SSI_SHOW
;
}
...
...
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