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
da058cbf
Commit
da058cbf
authored
Sep 17, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Sep 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Handle deletion at the end of text properly.
parent
abde9a91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
paint.c
dlls/riched20/paint.c
+8
-6
No files found.
dlls/riched20/paint.c
View file @
da058cbf
...
...
@@ -1072,6 +1072,7 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
}
nNewPos
=
SetScrollInfo
(
editor
->
hWnd
,
SB_VERT
,
&
si
,
editor
->
bRedraw
);
editor
->
vert_si
.
nPos
=
nNewPos
;
nActualScroll
=
nOrigPos
-
nNewPos
;
if
(
editor
->
bRedraw
)
{
...
...
@@ -1105,7 +1106,7 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
bScrollBarWasVisible
=
ME_GetYScrollVisible
(
editor
);
bScrollBarWillBeVisible
=
editor
->
nHeight
>
editor
->
sizeWindow
.
cy
;
si
.
fMask
=
SIF_PAGE
|
SIF_RANGE
;
si
.
fMask
=
SIF_PAGE
|
SIF_RANGE
|
SIF_POS
;
if
(
GetWindowLongW
(
hWnd
,
GWL_STYLE
)
&
ES_DISABLENOSCROLL
)
si
.
fMask
|=
SIF_DISABLENOSCROLL
;
if
((
si
.
fMask
&
SIF_DISABLENOSCROLL
))
...
...
@@ -1122,7 +1123,7 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
si
.
nMin
=
0
;
si
.
nMax
=
editor
->
nTotalLength
;
si
.
nPos
=
editor
->
vert_si
.
nPos
;
si
.
nPage
=
editor
->
sizeWindow
.
cy
;
if
(
!
(
si
.
nMin
==
editor
->
vert_si
.
nMin
&&
si
.
nMax
==
editor
->
vert_si
.
nMax
&&
si
.
nPage
==
editor
->
vert_si
.
nPage
))
...
...
@@ -1138,17 +1139,18 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
else
{
if
(
bScrollBarWasVisible
&&
!
(
si
.
fMask
&
SIF_DISABLENOSCROLL
))
{
SetScrollInfo
(
hWnd
,
SB_VERT
,
&
si
,
TRUE
);
ShowScrollBar
(
hWnd
,
SB_VERT
,
FALSE
);
ME_ScrollAbs
(
editor
,
0
);
}
}
}
}
int
ME_GetYScrollPos
(
ME_TextEditor
*
editor
)
{
SCROLLINFO
si
;
si
.
cbSize
=
sizeof
(
si
);
si
.
fMask
=
SIF_POS
;
return
GetScrollInfo
(
editor
->
hWnd
,
SB_VERT
,
&
si
)
?
si
.
nPos
:
0
;
return
editor
->
vert_si
.
nPos
;
}
BOOL
ME_GetYScrollVisible
(
ME_TextEditor
*
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