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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
scroll.c
controls/scroll.c
+7
-3
No files found.
controls/scroll.c
View file @
ed669305
...
@@ -1278,6 +1278,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
...
@@ -1278,6 +1278,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
SCROLLBAR_INFO
*
infoPtr
;
SCROLLBAR_INFO
*
infoPtr
;
UINT
new_flags
;
UINT
new_flags
;
BOOL
bChangeParams
=
FALSE
;
/* don't show/hide scrollbar if params don't change */
*
action
=
0
;
*
action
=
0
;
...
@@ -1303,6 +1304,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
...
@@ -1303,6 +1304,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
{
{
infoPtr
->
Page
=
info
->
nPage
;
infoPtr
->
Page
=
info
->
nPage
;
*
action
|=
SA_SSI_REFRESH
;
*
action
|=
SA_SSI_REFRESH
;
bChangeParams
=
TRUE
;
}
}
}
}
...
@@ -1327,15 +1329,17 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
...
@@ -1327,15 +1329,17 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
{
{
infoPtr
->
MinVal
=
0
;
infoPtr
->
MinVal
=
0
;
infoPtr
->
MaxVal
=
0
;
infoPtr
->
MaxVal
=
0
;
bChangeParams
=
TRUE
;
}
}
else
else
{
{
if
(
infoPtr
->
MinVal
!=
info
->
nMin
||
if
(
infoPtr
->
MinVal
!=
info
->
nMin
||
infoPtr
->
MaxVal
!=
info
->
nMax
)
infoPtr
->
MaxVal
!=
info
->
nMax
)
{
{
*
action
|=
SA_SSI_REFRESH
;
*
action
|=
SA_SSI_REFRESH
;
infoPtr
->
MinVal
=
info
->
nMin
;
infoPtr
->
MinVal
=
info
->
nMin
;
infoPtr
->
MaxVal
=
info
->
nMax
;
infoPtr
->
MaxVal
=
info
->
nMax
;
bChangeParams
=
TRUE
;
}
}
}
}
}
}
...
@@ -1375,7 +1379,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
...
@@ -1375,7 +1379,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
new_flags
=
ESB_DISABLE_BOTH
;
new_flags
=
ESB_DISABLE_BOTH
;
*
action
|=
SA_SSI_REFRESH
;
*
action
|=
SA_SSI_REFRESH
;
}
}
else
if
(
nBar
!=
SB_CTL
)
else
if
(
(
nBar
!=
SB_CTL
)
&&
bChangeParams
)
{
{
*
action
=
SA_SSI_HIDE
;
*
action
=
SA_SSI_HIDE
;
goto
done
;
goto
done
;
...
@@ -1384,7 +1388,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
...
@@ -1384,7 +1388,7 @@ INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
else
/* Show and enable scroll-bar */
else
/* Show and enable scroll-bar */
{
{
new_flags
=
0
;
new_flags
=
0
;
if
(
nBar
!=
SB_CTL
)
if
(
(
nBar
!=
SB_CTL
)
&&
bChangeParams
)
*
action
|=
SA_SSI_SHOW
;
*
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