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
859b1e89
Commit
859b1e89
authored
Mar 12, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use EM_GETTEXTLENGTHEX to implement WM_GETTEXTLENGTH.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
60a2d66e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
editor.c
dlls/riched20/editor.c
+1
-3
txthost.c
dlls/riched20/txthost.c
+9
-0
No files found.
dlls/riched20/editor.c
View file @
859b1e89
...
...
@@ -3969,10 +3969,8 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
case
WM_GETTEXTLENGTH
:
{
GETTEXTLENGTHEX
how
;
/* CR/LF conversion required in 2.0 mode, verbatim in 1.0 mode */
how
.
flags
=
GTL_CLOSE
|
(
editor
->
bEmulateVersion10
?
0
:
GTL_USECRLF
)
|
GTL_NUMCHARS
;
how
.
codepage
=
unicode
?
CP_UNICODE
:
CP_ACP
;
how
.
codepage
=
CP_UNICODE
;
return
ME_GetTextLengthEx
(
editor
,
&
how
);
}
case
EM_GETTEXTLENGTHEX
:
...
...
dlls/riched20/txthost.c
View file @
859b1e89
...
...
@@ -801,6 +801,15 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
FillRect
(
hdc
,
&
rc
,
editor
->
hbrBackground
);
return
1
;
}
case
WM_GETTEXTLENGTH
:
{
GETTEXTLENGTHEX
params
;
params
.
flags
=
GTL_CLOSE
|
(
host
->
emulate_10
?
0
:
GTL_USECRLF
)
|
GTL_NUMCHARS
;
params
.
codepage
=
unicode
?
CP_UNICODE
:
CP_ACP
;
hr
=
ITextServices_TxSendMessage
(
host
->
text_srv
,
EM_GETTEXTLENGTHEX
,
(
WPARAM
)
&
params
,
0
,
&
res
);
break
;
}
case
WM_PAINT
:
{
HDC
hdc
;
...
...
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