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
7a78eed4
Commit
7a78eed4
authored
Nov 20, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/pager: Fix tracking of mouse position inside the buttons.
parent
f3b8e682
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
pager.c
dlls/comctl32/pager.c
+4
-3
No files found.
dlls/comctl32/pager.c
View file @
7a78eed4
...
...
@@ -314,9 +314,10 @@ PAGER_UpdateBtns(PAGER_INFO *infoPtr, INT scrollRange, BOOL hideGrayBtns)
RECT
rcTopLeft
,
rcBottomRight
;
/* get button rects */
PAGER_GetButtonRects
(
infoPtr
,
&
rcTopLeft
,
&
rcBottomRight
,
FALS
E
);
PAGER_GetButtonRects
(
infoPtr
,
&
rcTopLeft
,
&
rcBottomRight
,
TRU
E
);
GetCursorPos
(
&
pt
);
ScreenToClient
(
infoPtr
->
hwndSelf
,
&
pt
);
/* update states based on scroll position */
if
(
infoPtr
->
nPos
>
0
)
...
...
@@ -324,7 +325,7 @@ PAGER_UpdateBtns(PAGER_INFO *infoPtr, INT scrollRange, BOOL hideGrayBtns)
if
(
infoPtr
->
TLbtnState
==
PGF_INVISIBLE
||
infoPtr
->
TLbtnState
==
PGF_GRAYED
)
infoPtr
->
TLbtnState
=
PGF_NORMAL
;
}
else
if
(
PtInRect
(
&
rcTopLeft
,
pt
))
else
if
(
!
hideGrayBtns
&&
PtInRect
(
&
rcTopLeft
,
pt
))
infoPtr
->
TLbtnState
=
PGF_GRAYED
;
else
infoPtr
->
TLbtnState
=
PGF_INVISIBLE
;
...
...
@@ -339,7 +340,7 @@ PAGER_UpdateBtns(PAGER_INFO *infoPtr, INT scrollRange, BOOL hideGrayBtns)
if
(
infoPtr
->
BRbtnState
==
PGF_INVISIBLE
||
infoPtr
->
BRbtnState
==
PGF_GRAYED
)
infoPtr
->
BRbtnState
=
PGF_NORMAL
;
}
else
if
(
PtInRect
(
&
rcBottomRight
,
pt
))
else
if
(
!
hideGrayBtns
&&
PtInRect
(
&
rcBottomRight
,
pt
))
infoPtr
->
BRbtnState
=
PGF_GRAYED
;
else
infoPtr
->
BRbtnState
=
PGF_INVISIBLE
;
...
...
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