Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4c28a5bc
Commit
4c28a5bc
authored
Oct 26, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Fixed initial word wrap setting when emulating 1.0.
parent
9b4c8211
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
editor.c
dlls/riched20/editor.c
+2
-0
editor.c
dlls/riched32/tests/editor.c
+3
-3
No files found.
dlls/riched20/editor.c
View file @
4c28a5bc
...
...
@@ -4148,7 +4148,9 @@ LRESULT WINAPI RichEdit10ANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM
{
ME_TextEditor
*
editor
=
(
ME_TextEditor
*
)
GetWindowLongPtrW
(
hWnd
,
0
);
TRACE
(
"Emulating version 1.0 (hWnd=%p)
\n
"
,
hWnd
);
editor
->
bEmulateVersion10
=
TRUE
;
editor
->
bWordWrap
=
(
GetWindowLongW
(
hWnd
,
GWL_STYLE
)
&
ES_AUTOHSCROLL
)
?
FALSE
:
TRUE
;
editor
->
pBuffer
->
pLast
->
member
.
para
.
nCharOfs
=
2
;
assert
(
editor
->
pBuffer
->
pLast
->
prev
->
type
==
diRun
);
assert
(
editor
->
pBuffer
->
pLast
->
prev
->
member
.
run
.
nFlags
&
MERF_ENDPARA
);
...
...
dlls/riched32/tests/editor.c
View file @
4c28a5bc
...
...
@@ -849,13 +849,13 @@ static void test_word_wrap(void)
res
=
SendMessage
(
hwnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text
);
ok
(
res
,
"WM_SETTEXT failed.
\n
"
);
pos
=
SendMessage
(
hwnd
,
EM_CHARFROMPOS
,
0
,
(
LPARAM
)
&
point
);
todo_wine
ok
(
pos
,
"pos=%d indicating no word wrap when it is expected.
\n
"
,
pos
);
ok
(
pos
,
"pos=%d indicating no word wrap when it is expected.
\n
"
,
pos
);
lines
=
SendMessage
(
hwnd
,
EM_GETLINECOUNT
,
0
,
0
);
todo_wine
ok
(
lines
>
1
,
"Line was expected to wrap (lines=%d).
\n
"
,
lines
);
ok
(
lines
>
1
,
"Line was expected to wrap (lines=%d).
\n
"
,
lines
);
SetWindowLong
(
hwnd
,
GWL_STYLE
,
dwCommonStyle
|
WS_HSCROLL
|
ES_AUTOHSCROLL
);
pos
=
SendMessage
(
hwnd
,
EM_CHARFROMPOS
,
0
,
(
LPARAM
)
&
point
);
todo_wine
ok
(
pos
,
"pos=%d indicating no word wrap when it is expected.
\n
"
,
pos
);
ok
(
pos
,
"pos=%d indicating no word wrap when it is expected.
\n
"
,
pos
);
DestroyWindow
(
hwnd
);
hwnd
=
CreateWindow
(
RICHEDIT_CLASS10A
,
NULL
,
dwCommonStyle
|
ES_AUTOHSCROLL
,
...
...
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