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
98bcdf9e
Commit
98bcdf9e
authored
Mar 24, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert broken change to the scrollbar position adjustment code.
parent
4d52d379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
scroll.c
controls/scroll.c
+21
-17
No files found.
controls/scroll.c
View file @
98bcdf9e
...
...
@@ -1221,7 +1221,6 @@ static void SCROLL_CreateScrollBar(
HWND
hwnd
/* [in] Handle of window with scrollbar(s) */
,
LPCREATESTRUCTW
lpCreate
/* [in] The style and place of the scroll bar */
)
{
POINT
pos
,
size
;
LPSCROLLBAR_INFO
info
=
SCROLL_GetScrollBarInfo
(
hwnd
,
SB_CTL
);
if
(
!
info
)
return
;
...
...
@@ -1233,23 +1232,28 @@ LPCREATESTRUCTW lpCreate /* [in] The style and place of the scroll bar */)
TRACE
(
"Created WS_DISABLED scrollbar
\n
"
);
}
/* copy the desired positions and size */
pos
.
x
=
lpCreate
->
x
;
pos
.
y
=
lpCreate
->
y
;
size
.
x
=
lpCreate
->
cx
;
size
.
y
=
lpCreate
->
cy
;
/* move position based on style */
if
(
lpCreate
->
style
&
SBS_RIGHTALIGN
)
pos
.
x
+=
size
.
x
-
GetSystemMetrics
(
SM_CXVSCROLL
)
-
1
;
else
if
(
lpCreate
->
style
&
SBS_BOTTOMALIGN
)
pos
.
y
+=
size
.
y
-
GetSystemMetrics
(
SM_CYHSCROLL
)
-
1
;
/* change size based on style */
if
(
lpCreate
->
style
&
SBS_VERT
)
size
.
x
=
GetSystemMetrics
(
SM_CXVSCROLL
)
+
1
;
else
size
.
y
=
GetSystemMetrics
(
SM_CYHSCROLL
)
+
1
;
MoveWindow
(
hwnd
,
pos
.
x
,
pos
.
y
,
size
.
x
,
size
.
y
,
FALSE
);
{
if
(
lpCreate
->
style
&
SBS_LEFTALIGN
)
MoveWindow
(
hwnd
,
lpCreate
->
x
,
lpCreate
->
y
,
GetSystemMetrics
(
SM_CXVSCROLL
)
+
1
,
lpCreate
->
cy
,
FALSE
);
else
if
(
lpCreate
->
style
&
SBS_RIGHTALIGN
)
MoveWindow
(
hwnd
,
lpCreate
->
x
+
lpCreate
->
cx
-
GetSystemMetrics
(
SM_CXVSCROLL
)
-
1
,
lpCreate
->
y
,
GetSystemMetrics
(
SM_CXVSCROLL
)
+
1
,
lpCreate
->
cy
,
FALSE
);
}
else
/* SBS_HORZ */
{
if
(
lpCreate
->
style
&
SBS_TOPALIGN
)
MoveWindow
(
hwnd
,
lpCreate
->
x
,
lpCreate
->
y
,
lpCreate
->
cx
,
GetSystemMetrics
(
SM_CYHSCROLL
)
+
1
,
FALSE
);
else
if
(
lpCreate
->
style
&
SBS_BOTTOMALIGN
)
MoveWindow
(
hwnd
,
lpCreate
->
x
,
lpCreate
->
y
+
lpCreate
->
cy
-
GetSystemMetrics
(
SM_CYHSCROLL
)
-
1
,
lpCreate
->
cx
,
GetSystemMetrics
(
SM_CYHSCROLL
)
+
1
,
FALSE
);
}
}
...
...
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