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
e7b68a20
Commit
e7b68a20
authored
Jan 20, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Jan 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Implemented ITextServices_TxSendMessage.
parent
902afbc6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
7 deletions
+16
-7
context.c
dlls/riched20/context.c
+6
-2
editor.c
dlls/riched20/editor.c
+1
-1
editor.h
dlls/riched20/editor.h
+2
-0
style.c
dlls/riched20/style.c
+0
-2
txtsrv.c
dlls/riched20/txtsrv.c
+7
-2
No files found.
dlls/riched20/context.c
View file @
e7b68a20
...
...
@@ -29,8 +29,12 @@ void ME_InitContext(ME_Context *c, ME_TextEditor *editor, HDC hDC)
c
->
pt
.
y
=
0
;
c
->
hbrMargin
=
CreateSolidBrush
(
RGB
(
224
,
224
,
224
));
c
->
rcView
=
editor
->
rcFormat
;
c
->
dpi
.
cx
=
GetDeviceCaps
(
hDC
,
LOGPIXELSX
);
c
->
dpi
.
cy
=
GetDeviceCaps
(
hDC
,
LOGPIXELSY
);
if
(
hDC
)
{
c
->
dpi
.
cx
=
GetDeviceCaps
(
hDC
,
LOGPIXELSX
);
c
->
dpi
.
cy
=
GetDeviceCaps
(
hDC
,
LOGPIXELSY
);
}
else
{
c
->
dpi
.
cx
=
c
->
dpi
.
cy
=
96
;
}
}
void
ME_DestroyContext
(
ME_Context
*
c
)
...
...
dlls/riched20/editor.c
View file @
e7b68a20
...
...
@@ -3024,7 +3024,7 @@ void ME_LinkNotify(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam
* The LRESULT that is returned is a return value for window procs,
* and the phresult parameter is the COM return code needed by the
* text services interface. */
static
LRESULT
ME_HandleMessage
(
ME_TextEditor
*
editor
,
UINT
msg
,
WPARAM
wParam
,
LRESULT
ME_HandleMessage
(
ME_TextEditor
*
editor
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
unicode
,
HRESULT
*
phresult
)
{
*
phresult
=
S_OK
;
...
...
dlls/riched20/editor.h
View file @
e7b68a20
...
...
@@ -262,6 +262,8 @@ void ME_DeleteReObject(REOBJECT* reo);
/* editor.c */
ME_TextEditor
*
ME_MakeEditor
(
ITextHost
*
texthost
,
BOOL
bEmulateVersion10
);
LRESULT
ME_HandleMessage
(
ME_TextEditor
*
editor
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
unicode
,
HRESULT
*
phresult
);
void
ME_SendOldNotify
(
ME_TextEditor
*
editor
,
int
nCode
);
int
ME_GetTextW
(
ME_TextEditor
*
editor
,
WCHAR
*
buffer
,
int
nStart
,
int
nChars
,
BOOL
bCRLF
);
ME_DisplayItem
*
ME_FindItemAtOffset
(
ME_TextEditor
*
editor
,
ME_DIType
nItemType
,
int
nOffset
,
int
*
nItemOffset
);
...
...
dlls/riched20/style.c
View file @
e7b68a20
...
...
@@ -373,7 +373,6 @@ HFONT ME_SelectStyleFont(ME_Context *c, ME_Style *s)
LOGFONTW
lf
;
int
i
,
nEmpty
,
nAge
=
0x7FFFFFFF
;
ME_FontCacheItem
*
item
;
assert
(
c
->
hDC
);
assert
(
s
);
ME_LogFontFromStyle
(
c
,
&
lf
,
s
);
...
...
@@ -426,7 +425,6 @@ void ME_UnselectStyleFont(ME_Context *c, ME_Style *s, HFONT hOldFont)
{
int
i
;
assert
(
c
->
hDC
);
assert
(
s
);
SelectObject
(
c
->
hDC
,
hOldFont
);
for
(
i
=
0
;
i
<
HFONT_CACHE_SIZE
;
i
++
)
...
...
dlls/riched20/txtsrv.c
View file @
e7b68a20
...
...
@@ -57,6 +57,7 @@ typedef struct ITextServicesImpl {
ITextHost
*
pMyHost
;
LONG
ref
;
CRITICAL_SECTION
csTxtSrv
;
ME_TextEditor
*
editor
;
char
spare
[
256
];
}
ITextServicesImpl
;
...
...
@@ -70,6 +71,7 @@ HRESULT WINAPI CreateTextServices(IUnknown * pUnkOuter,
IUnknown
**
ppUnk
)
{
ITextServicesImpl
*
ITextImpl
;
HRESULT
hres
;
TRACE
(
"%p %p --> %p
\n
"
,
pUnkOuter
,
pITextHost
,
ppUnk
);
if
(
pITextHost
==
NULL
)
return
E_POINTER
;
...
...
@@ -83,6 +85,8 @@ HRESULT WINAPI CreateTextServices(IUnknown * pUnkOuter,
ITextHost_AddRef
(
pITextHost
);
ITextImpl
->
pMyHost
=
pITextHost
;
ITextImpl
->
lpVtbl
=
&
textservices_Vtbl
;
ITextImpl
->
editor
=
ME_MakeEditor
(
pITextHost
,
FALSE
);
ME_HandleMessage
(
ITextImpl
->
editor
,
WM_CREATE
,
0
,
0
,
TRUE
,
&
hres
);
if
(
pUnkOuter
)
{
...
...
@@ -150,9 +154,10 @@ HRESULT WINAPI fnTextSrv_TxSendMessage(ITextServices *iface,
LRESULT
*
plresult
)
{
ICOM_THIS_MULTI
(
ITextServicesImpl
,
lpVtbl
,
iface
);
HRESULT
hresult
;
FIXME
(
"%p: STUB
\n
"
,
This
);
return
E_NOTIMPL
;
*
plresult
=
ME_HandleMessage
(
This
->
editor
,
msg
,
wparam
,
lparam
,
TRUE
,
&
hresult
);
return
hresult
;
}
HRESULT
WINAPI
fnTextSrv_TxDraw
(
ITextServices
*
iface
,
...
...
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