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
09f43e04
Commit
09f43e04
authored
Jul 06, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jul 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Separate scroll bar window checks from actual drawing.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cead75ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
scroll.c
dlls/user32/scroll.c
+14
-8
No files found.
dlls/user32/scroll.c
View file @
09f43e04
...
@@ -562,15 +562,10 @@ static void SCROLL_DoDrawScrollBar( HWND hwnd, HDC hdc, INT nBar, enum SCROLL_HI
...
@@ -562,15 +562,10 @@ static void SCROLL_DoDrawScrollBar( HWND hwnd, HDC hdc, INT nBar, enum SCROLL_HI
BOOL
interior
,
RECT
*
rect
,
INT
arrowSize
,
INT
thumbPos
,
BOOL
interior
,
RECT
*
rect
,
INT
arrowSize
,
INT
thumbPos
,
INT
thumbSize
,
BOOL
vertical
)
INT
thumbSize
,
BOOL
vertical
)
{
{
SCROLLBAR_INFO
*
infoPtr
=
SCROLL_GetInternalInfo
(
hwnd
,
nBar
,
TRUE
);
SCROLLBAR_INFO
*
infoPtr
;
DWORD
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
(
!
(
hwnd
=
WIN_GetFullHandle
(
hwnd
)))
return
;
if
(
!
infoPtr
||
if
(
!
(
infoPtr
=
SCROLL_GetInternalInfo
(
hwnd
,
nBar
,
TRUE
)))
((
nBar
==
SB_VERT
)
&&
!
(
style
&
WS_VSCROLL
))
||
return
;
((
nBar
==
SB_HORZ
)
&&
!
(
style
&
WS_HSCROLL
)))
return
;
if
(
!
WIN_IsWindowDrawable
(
hwnd
,
FALSE
))
return
;
/* Draw the arrows */
/* Draw the arrows */
...
@@ -625,8 +620,19 @@ void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT bar, enum SCROLL_HITTEST hit_
...
@@ -625,8 +620,19 @@ void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT bar, enum SCROLL_HITTEST hit_
{
{
INT
arrow_size
,
thumb_size
,
thumb_pos
;
INT
arrow_size
,
thumb_size
,
thumb_pos
;
BOOL
vertical
;
BOOL
vertical
;
DWORD
style
;
RECT
rect
;
RECT
rect
;
if
(
!
(
hwnd
=
WIN_GetFullHandle
(
hwnd
)))
return
;
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
((
bar
==
SB_VERT
&&
!
(
style
&
WS_VSCROLL
))
||
(
bar
==
SB_HORZ
&&
!
(
style
&
WS_HSCROLL
)))
return
;
if
(
!
WIN_IsWindowDrawable
(
hwnd
,
FALSE
))
return
;
SCROLL_GetScrollBarDrawInfo
(
hwnd
,
bar
,
tracking_info
,
&
rect
,
&
arrow_size
,
&
thumb_size
,
SCROLL_GetScrollBarDrawInfo
(
hwnd
,
bar
,
tracking_info
,
&
rect
,
&
arrow_size
,
&
thumb_size
,
&
thumb_pos
,
&
vertical
);
&
thumb_pos
,
&
vertical
);
/* do not draw if the scrollbar rectangle is empty */
/* do not draw if the scrollbar rectangle is empty */
...
...
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