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
4f99560e
Commit
4f99560e
authored
May 19, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove duplicated code for scroll control size calculation.
parent
a17d5181
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
27 deletions
+8
-27
tab.c
dlls/comctl32/tab.c
+8
-27
No files found.
dlls/comctl32/tab.c
View file @
4f99560e
...
...
@@ -1023,37 +1023,18 @@ static void TAB_SetupScrolling(
/*
* Calculate the position of the scroll control.
*/
if
(
infoPtr
->
dwStyle
&
TCS_VERTICAL
)
{
controlPos
.
right
=
clientRect
->
right
;
controlPos
.
left
=
controlPos
.
right
-
2
*
GetSystemMetrics
(
SM_CXHSCROLL
);
controlPos
.
right
=
clientRect
->
right
;
controlPos
.
left
=
controlPos
.
right
-
2
*
GetSystemMetrics
(
SM_CXHSCROLL
);
if
(
infoPtr
->
dwStyle
&
TCS_BOTTOM
)
{
controlPos
.
top
=
clientRect
->
bottom
-
infoPtr
->
tabHeight
;
controlPos
.
bottom
=
controlPos
.
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
}
else
{
controlPos
.
bottom
=
clientRect
->
top
+
infoPtr
->
tabHeight
;
controlPos
.
top
=
controlPos
.
bottom
-
GetSystemMetrics
(
SM_CYHSCROLL
);
}
if
(
infoPtr
->
dwStyle
&
TCS_BOTTOM
)
{
controlPos
.
top
=
clientRect
->
bottom
-
infoPtr
->
tabHeight
;
controlPos
.
bottom
=
controlPos
.
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
}
else
{
controlPos
.
right
=
clientRect
->
right
;
controlPos
.
left
=
controlPos
.
right
-
2
*
GetSystemMetrics
(
SM_CXHSCROLL
);
if
(
infoPtr
->
dwStyle
&
TCS_BOTTOM
)
{
controlPos
.
top
=
clientRect
->
bottom
-
infoPtr
->
tabHeight
;
controlPos
.
bottom
=
controlPos
.
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
}
else
{
controlPos
.
bottom
=
clientRect
->
top
+
infoPtr
->
tabHeight
;
controlPos
.
top
=
controlPos
.
bottom
-
GetSystemMetrics
(
SM_CYHSCROLL
);
}
controlPos
.
bottom
=
clientRect
->
top
+
infoPtr
->
tabHeight
;
controlPos
.
top
=
controlPos
.
bottom
-
GetSystemMetrics
(
SM_CYHSCROLL
);
}
/*
...
...
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