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
84d59923
Commit
84d59923
authored
Aug 11, 2003
by
Johan Dahlin
Committed by
Alexandre Julliard
Aug 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure winhelp doesn't scroll outside of its display area.
parent
49b408b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
winhelp.c
programs/winhelp/winhelp.c
+7
-1
No files found.
programs/winhelp/winhelp.c
View file @
84d59923
...
...
@@ -814,6 +814,8 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
RECT
rect
;
INT
Min
,
Max
;
INT
CurPos
=
GetScrollPos
(
hWnd
,
SB_VERT
);
INT
dy
;
GetScrollRange
(
hWnd
,
SB_VERT
,
&
Min
,
&
Max
);
GetClientRect
(
hWnd
,
&
rect
);
...
...
@@ -831,7 +833,11 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
}
if
(
update
)
{
INT
dy
=
GetScrollPos
(
hWnd
,
SB_VERT
)
-
CurPos
;
if
(
CurPos
>
Max
)
CurPos
=
Max
;
else
if
(
CurPos
<
Min
)
CurPos
=
Min
;
dy
=
GetScrollPos
(
hWnd
,
SB_VERT
)
-
CurPos
;
SetScrollPos
(
hWnd
,
SB_VERT
,
CurPos
,
TRUE
);
ScrollWindow
(
hWnd
,
0
,
dy
,
NULL
,
NULL
);
UpdateWindow
(
hWnd
);
...
...
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