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
5d75cac4
Commit
5d75cac4
authored
Mar 15, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Implement EM_SETREADONLY using EM_SETOPTIONS.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b4564200
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
15 deletions
+4
-15
editor.c
dlls/riched20/editor.c
+0
-8
txthost.c
dlls/riched20/txthost.c
+4
-7
No files found.
dlls/riched20/editor.c
View file @
5d75cac4
...
...
@@ -3779,14 +3779,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
return
0
;
}
case
EM_SETREADONLY
:
{
if
(
wParam
)
editor
->
styleFlags
|=
ES_READONLY
;
else
editor
->
styleFlags
&=
~
ES_READONLY
;
return
1
;
}
case
EM_SETEVENTMASK
:
{
DWORD
nOldMask
=
editor
->
nEventMask
;
...
...
dlls/riched20/txthost.c
View file @
5d75cac4
...
...
@@ -1002,14 +1002,11 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
}
case
EM_SETREADONLY
:
{
DWORD
style
;
DWORD
op
=
wparam
?
ECOOP_OR
:
ECOOP_AND
;
DWORD
mask
=
wparam
?
ECO_READONLY
:
~
ECO_READONLY
;
res
=
ME_HandleMessage
(
editor
,
msg
,
wparam
,
lparam
,
unicode
,
&
hr
);
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
style
&=
~
ES_READONLY
;
if
(
wparam
)
style
|=
ES_READONLY
;
SetWindowLongW
(
hwnd
,
GWL_STYLE
,
style
);
return
res
;
SendMessageW
(
hwnd
,
EM_SETOPTIONS
,
op
,
mask
);
return
1
;
}
case
WM_SETTEXT
:
{
...
...
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