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
14f4bd96
Commit
14f4bd96
authored
Mar 22, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Implement ITextServices_OnTxInPlaceActivate().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e5c289f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
+20
-6
editor.c
dlls/riched20/editor.c
+1
-0
editstr.h
dlls/riched20/editstr.h
+2
-1
txtsrv.c
dlls/riched20/txtsrv.c
+17
-5
No files found.
dlls/riched20/editor.c
View file @
14f4bd96
...
...
@@ -2936,6 +2936,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
ed
->
texthost
=
texthost
;
ed
->
reOle
=
NULL
;
ed
->
bEmulateVersion10
=
bEmulateVersion10
;
ed
->
in_place_active
=
FALSE
;
ed
->
total_rows
=
0
;
ITextHost_TxGetPropertyBits
(
texthost
,
TXTBIT_RICHTEXT
|
TXTBIT_MULTILINE
|
TXTBIT_READONLY
|
TXTBIT_USEPASSWORD
|
TXTBIT_HIDESELECTION
|
TXTBIT_SAVESELECTION
|
...
...
dlls/riched20/editstr.h
View file @
14f4bd96
...
...
@@ -380,7 +380,8 @@ typedef struct tagME_TextEditor
HWND
hWnd
,
hwndParent
;
ITextHost
*
texthost
;
IUnknown
*
reOle
;
BOOL
bEmulateVersion10
;
unsigned
int
bEmulateVersion10
:
1
;
unsigned
int
in_place_active
:
1
;
ME_TextBuffer
*
pBuffer
;
ME_Cursor
*
pCursors
;
DWORD
props
;
...
...
dlls/riched20/txtsrv.c
View file @
14f4bd96
...
...
@@ -233,12 +233,23 @@ static HRESULT update_client_rect( struct text_services *services, const RECT *c
}
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxInPlaceActivate
,
8
)
DECLSPEC_HIDDEN
HRESULT
__thiscall
fnTextSrv_OnTxInPlaceActivate
(
ITextServices
*
iface
,
LPCRECT
prcClient
)
DECLSPEC_HIDDEN
HRESULT
__thiscall
fnTextSrv_OnTxInPlaceActivate
(
ITextServices
*
iface
,
const
RECT
*
client
)
{
struct
text_services
*
services
=
impl_from_ITextServices
(
iface
);
HRESULT
hr
;
BOOL
old_active
=
services
->
editor
->
in_place_active
;
FIXME
(
"%p: STUB
\n
"
,
services
);
return
E_NOTIMPL
;
TRACE
(
"%p: %s
\n
"
,
services
,
wine_dbgstr_rect
(
client
)
);
services
->
editor
->
in_place_active
=
TRUE
;
hr
=
update_client_rect
(
services
,
client
);
if
(
FAILED
(
hr
))
{
services
->
editor
->
in_place_active
=
old_active
;
return
hr
;
}
ME_RewrapRepaint
(
services
->
editor
);
return
S_OK
;
}
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxInPlaceDeactivate
,
4
)
...
...
@@ -246,8 +257,9 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInPlaceDeactivate(ITextServices
{
struct
text_services
*
services
=
impl_from_ITextServices
(
iface
);
FIXME
(
"%p: STUB
\n
"
,
services
);
return
E_NOTIMPL
;
TRACE
(
"%p
\n
"
,
services
);
services
->
editor
->
in_place_active
=
FALSE
;
return
S_OK
;
}
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxUIActivate
,
4
)
...
...
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