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
62f96b03
Commit
62f96b03
authored
Mar 30, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Send EN_UPDATE from TxDraw().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
de1398ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
paint.c
dlls/riched20/paint.c
+0
-3
txtsrv.c
dlls/riched20/tests/txtsrv.c
+12
-0
txtsrv.c
dlls/riched20/txtsrv.c
+4
-0
No files found.
dlls/riched20/paint.c
View file @
62f96b03
...
...
@@ -140,9 +140,6 @@ void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now)
update_caret
(
editor
);
if
(
!
editor
->
bEmulateVersion10
||
(
editor
->
nEventMask
&
ENM_UPDATE
))
ITextHost_TxNotify
(
editor
->
texthost
,
EN_UPDATE
,
NULL
);
ITextHost_TxViewChange
(
editor
->
texthost
,
update_now
);
ME_SendSelChange
(
editor
);
...
...
dlls/riched20/tests/txtsrv.c
View file @
62f96b03
...
...
@@ -399,6 +399,7 @@ static HRESULT __thiscall ITextHostImpl_TxGetPropertyBits(ITextHost *iface, DWOR
}
static
int
en_vscroll_sent
;
static
int
en_update_sent
;
static
HRESULT
__thiscall
ITextHostImpl_TxNotify
(
ITextHost
*
iface
,
DWORD
code
,
void
*
data
)
{
ITextHostTestImpl
*
This
=
impl_from_ITextHost
(
iface
);
...
...
@@ -409,6 +410,10 @@ static HRESULT __thiscall ITextHostImpl_TxNotify( ITextHost *iface, DWORD code,
en_vscroll_sent
++
;
ok
(
!
data
,
"got %p
\n
"
,
data
);
break
;
case
EN_UPDATE
:
en_update_sent
++
;
ok
(
!
data
,
"got %p
\n
"
,
data
);
break
;
}
return
S_OK
;
}
...
...
@@ -1152,6 +1157,13 @@ static void test_notifications( void )
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
en_vscroll_sent
==
2
,
"got %d
\n
"
,
en_vscroll_sent
);
/* EN_UPDATE is sent by TxDraw() */
en_update_sent
=
0
;
hr
=
ITextServices_TxDraw
(
txtserv
,
DVASPECT_CONTENT
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
TXTVIEW_ACTIVE
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
en_update_sent
==
1
,
"got %d
\n
"
,
en_update_sent
);
DestroyWindow
(
host_impl
->
window
);
ITextServices_Release
(
txtserv
);
ITextHost_Release
(
host
);
...
...
dlls/riched20/txtsrv.c
View file @
62f96b03
...
...
@@ -193,6 +193,10 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw( ITextServices *iface, DWORD
editor_mark_rewrap_all
(
services
->
editor
);
wrap_marked_paras_dc
(
services
->
editor
,
dc
,
FALSE
);
}
if
(
!
services
->
editor
->
bEmulateVersion10
||
services
->
editor
->
nEventMask
&
ENM_UPDATE
)
ITextHost_TxNotify
(
services
->
editor
->
texthost
,
EN_UPDATE
,
NULL
);
editor_draw
(
services
->
editor
,
dc
,
update
);
if
(
!
draw
)
ITextHost_TxReleaseDC
(
services
->
editor
->
texthost
,
dc
);
...
...
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