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
87292d81
Commit
87292d81
authored
Sep 18, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Sep 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Avoid unconditionally rewrapping text on scroll.
parent
da058cbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
paint.c
dlls/riched20/paint.c
+12
-1
No files found.
dlls/riched20/paint.c
View file @
87292d81
...
...
@@ -1046,6 +1046,9 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
{
SCROLLINFO
si
;
int
nOrigPos
,
nNewPos
,
nActualScroll
;
HWND
hWnd
;
LONG
winStyle
;
BOOL
bScrollBarIsVisible
,
bScrollBarWillBeVisible
;
nOrigPos
=
ME_GetYScrollPos
(
editor
);
...
...
@@ -1083,7 +1086,15 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
ME_Repaint
(
editor
);
}
editor
->
vert_si
.
nMax
=
0
;
hWnd
=
editor
->
hWnd
;
winStyle
=
GetWindowLongW
(
hWnd
,
GWL_STYLE
);
bScrollBarIsVisible
=
(
winStyle
&
WS_VSCROLL
)
!=
0
;
bScrollBarWillBeVisible
=
(
editor
->
nHeight
>
editor
->
sizeWindow
.
cy
)
||
(
winStyle
&
ES_DISABLENOSCROLL
);
if
(
bScrollBarIsVisible
!=
bScrollBarWillBeVisible
)
{
ShowScrollBar
(
hWnd
,
SB_VERT
,
bScrollBarWillBeVisible
);
}
ME_UpdateScrollBar
(
editor
);
}
...
...
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