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
a15e4515
Commit
a15e4515
authored
Mar 26, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add ITextHost2.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
767c200f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
textserv.h
include/textserv.h
+75
-0
No files found.
include/textserv.h
View file @
a15e4515
...
...
@@ -31,6 +31,7 @@ extern "C" {
EXTERN_C
const
IID
IID_ITextServices
;
EXTERN_C
const
IID
IID_ITextHost
;
EXTERN_C
const
IID
IID_ITextHost2
;
/*****************************************************************************
* ITextServices interface
...
...
@@ -364,6 +365,80 @@ DECLARE_INTERFACE_(ITextHost,IUnknown)
#define ITextHost_Release(p) (p)->lpVtbl->Release(p)
#endif
/*****************************************************************************
* ITextHost2 interface
*/
#define INTERFACE ITextHost2
DECLARE_INTERFACE_
(
ITextHost2
,
ITextHost
)
{
/*** IUnknown methods ***/
STDMETHOD
(
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** ITextHost methods ***/
THISCALLMETHOD_
(
HDC
,
TxGetDC
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
INT
,
TxReleaseDC
)(
THIS_
HDC
hdc
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxShowScrollBar
)(
THIS_
INT
fnBar
,
BOOL
fShow
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxEnableScrollBar
)(
THIS_
INT
fuSBFlags
,
INT
fuArrowflags
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxSetScrollRange
)(
THIS_
INT
fnBar
,
LONG
nMinPos
,
INT
nMaxPos
,
BOOL
fRedraw
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxSetScrollPos
)(
THIS_
INT
fnBar
,
INT
nPos
,
BOOL
fRedraw
)
PURE
;
THISCALLMETHOD_
(
void
,
TxInvalidateRect
)(
THIS_
LPCRECT
prc
,
BOOL
fMode
)
PURE
;
THISCALLMETHOD_
(
void
,
TxViewChange
)(
THIS_
BOOL
fUpdate
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxCreateCaret
)(
THIS_
HBITMAP
hbmp
,
INT
xWidth
,
INT
yHeight
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxShowCaret
)(
THIS_
BOOL
fShow
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxSetCaretPos
)(
THIS_
INT
x
,
INT
y
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxSetTimer
)(
THIS_
UINT
idTimer
,
UINT
uTimeout
)
PURE
;
THISCALLMETHOD_
(
void
,
TxKillTimer
)(
THIS_
UINT
idTimer
)
PURE
;
THISCALLMETHOD_
(
void
,
TxScrollWindowEx
)(
THIS_
INT
dx
,
INT
dy
,
LPCRECT
lprcScroll
,
LPCRECT
lprcClip
,
HRGN
hRgnUpdate
,
LPRECT
lprcUpdate
,
UINT
fuScroll
)
PURE
;
THISCALLMETHOD_
(
void
,
TxSetCapture
)(
THIS_
BOOL
fCapture
)
PURE
;
THISCALLMETHOD_
(
void
,
TxSetFocus
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
void
,
TxSetCursor
)(
THIS_
HCURSOR
hcur
,
BOOL
fText
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxScreenToClient
)(
THIS_
LPPOINT
lppt
)
PURE
;
THISCALLMETHOD_
(
BOOL
,
TxClientToScreen
)(
THIS_
LPPOINT
lppt
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxActivate
)(
THIS_
LONG
*
plOldState
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxDeactivate
)(
THIS_
LONG
lNewState
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetClientRect
)(
THIS_
LPRECT
prc
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetViewInset
)(
THIS_
LPRECT
prc
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetCharFormat
)(
THIS_
const
CHARFORMATW
**
ppCF
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetParaFormat
)(
THIS_
const
PARAFORMAT
**
ppPF
)
PURE
;
THISCALLMETHOD_
(
COLORREF
,
TxGetSysColor
)(
THIS_
int
nIndex
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetBackStyle
)(
THIS_
TXTBACKSTYLE
*
pStyle
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetMaxLength
)(
THIS_
DWORD
*
plength
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetScrollBars
)(
THIS_
DWORD
*
pdwScrollBar
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetPasswordChar
)(
THIS_
WCHAR
*
pch
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetAcceleratorPos
)(
THIS_
LONG
*
pch
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetExtent
)(
THIS_
LPSIZEL
lpExtent
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
OnTxCharFormatChange
)(
THIS_
const
CHARFORMATW
*
pcf
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
OnTxParaFormatChange
)(
THIS_
const
PARAFORMAT
*
ppf
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetPropertyBits
)(
THIS_
DWORD
dwMask
,
DWORD
*
pdwBits
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxNotify
)(
THIS_
DWORD
iNotify
,
void
*
pv
)
PURE
;
THISCALLMETHOD_
(
HIMC
,
TxImmGetContext
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
void
,
TxImmReleaseContext
)(
THIS_
HIMC
himc
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetSelectionBarWidth
)(
THIS_
LONG
*
lSelBarWidth
)
PURE
;
/* ITextHost2 methods */
THISCALLMETHOD_
(
BOOL
,
TxIsDoubleClickPending
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetWindow
)(
THIS_
HWND
*
hwnd
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxSetForegroundWindow
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
HPALETTE
,
TxGetPalette
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetEastAsianFlags
)(
THIS_
LONG
*
flags
)
PURE
;
THISCALLMETHOD_
(
HCURSOR
,
TxSetCursor2
)(
THIS_
HCURSOR
cursor
,
BOOL
text
)
PURE
;
THISCALLMETHOD_
(
void
,
TxFreeTextServicesNotification
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetEditStyle
)(
THIS_
DWORD
item
,
DWORD
*
data
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetWindowStyles
)(
THIS_
DWORD
*
style
,
DWORD
*
ex_style
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxShowDropCaret
)(
THIS_
BOOL
show
,
HDC
hdc
,
const
RECT
*
rect
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxDestroyCaret
)(
THIS
)
PURE
;
THISCALLMETHOD_
(
HRESULT
,
TxGetHorzExtent
)(
THIS_
LONG
*
horz_extent
)
PURE
;
};
#undef INTERFACE
#ifdef COBJMACROS
/*** IUnknown methods ***/
#define ITextHost2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define ITextHost2_AddRef(p) (p)->lpVtbl->AddRef(p)
#define ITextHost2_Release(p) (p)->lpVtbl->Release(p)
#endif
HRESULT
WINAPI
CreateTextServices
(
IUnknown
*
,
ITextHost
*
,
IUnknown
**
);
typedef
HRESULT
(
WINAPI
*
PCreateTextServices
)(
IUnknown
*
,
ITextHost
*
,
IUnknown
**
);
...
...
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