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
73e0c5ea
Commit
73e0c5ea
authored
Feb 24, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Feb 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Never wrap for single line controls.
I tested without the ES_MULTILINE style, and found that wrapping doesn't occur where it normally would.
parent
963407a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
editor.c
dlls/riched20/editor.c
+8
-4
No files found.
dlls/riched20/editor.c
View file @
73e0c5ea
...
...
@@ -2636,7 +2636,6 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
ed
->
nLastSelStart
=
ed
->
nLastSelEnd
=
0
;
ed
->
pLastSelStartPara
=
ed
->
pLastSelEndPara
=
ME_FindItemFwd
(
ed
->
pBuffer
->
pFirst
,
diParagraph
);
ed
->
nAvailWidth
=
0
;
/* wrap to client area */
ed
->
bWordWrap
=
(
props
&
TXTBIT_WORDWRAP
)
!=
0
;
ed
->
bHideSelection
=
FALSE
;
ed
->
pfnWordBreak
=
NULL
;
ed
->
lpOleCallback
=
NULL
;
...
...
@@ -2665,8 +2664,12 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
if
(
props
&
TXTBIT_AUTOWORDSEL
)
ed
->
styleFlags
|=
ECO_AUTOWORDSELECTION
;
if
(
props
&
TXTBIT_MULTILINE
)
if
(
props
&
TXTBIT_MULTILINE
)
{
ed
->
styleFlags
|=
ES_MULTILINE
;
ed
->
bWordWrap
=
(
props
&
TXTBIT_WORDWRAP
)
!=
0
;
}
else
{
ed
->
bWordWrap
=
FALSE
;
}
if
(
props
&
TXTBIT_READONLY
)
ed
->
styleFlags
|=
ES_READONLY
;
if
(
!
(
props
&
TXTBIT_HIDESELECTION
))
...
...
@@ -4296,7 +4299,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
case
EM_SETTARGETDEVICE
:
if
(
wParam
==
0
)
{
BOOL
new
=
(
lParam
==
0
);
BOOL
new
=
(
lParam
==
0
&&
(
editor
->
styleFlags
&
ES_MULTILINE
)
);
if
(
editor
->
nAvailWidth
||
editor
->
bWordWrap
!=
new
)
{
editor
->
bWordWrap
=
new
;
...
...
@@ -4305,7 +4308,8 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
}
}
else
{
int
width
=
max
(
0
,
lParam
);
if
(
!
editor
->
bWordWrap
||
editor
->
nAvailWidth
!=
width
)
if
((
editor
->
styleFlags
&
ES_MULTILINE
)
&&
(
!
editor
->
bWordWrap
||
editor
->
nAvailWidth
!=
width
))
{
editor
->
nAvailWidth
=
width
;
editor
->
bWordWrap
=
TRUE
;
...
...
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