RICHED20: add textserv.h (RESEND)
Mike McCormack
mike at codeweavers.com
Fri Jul 1 13:35:23 CDT 2005
The last try had some hacks in it to get around the fact that I wanted
to use widl to generate textserv.h. This time, I've given up on widl.
Mike
ChangeLog:
* add textserv.h
-------------- next part --------------
--- /dev/null 2005-06-30 20:35:17.000000000 +0000
+++ include/textserv.h 2005-07-01 18:33:28.000000000 +0000
@@ -0,0 +1,723 @@
+/*
+ * Copyright (C) 2005 Mike McCormack
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __WINE_TEXTSERV_H
+#define __WINE_TEXTSERV_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+DEFINE_GUID(IID_ITextServices,0x8d33f740,0xcf58,0x11ce,0xa8,0x9d,0x00,0xaa,0x00,0x6c,0xad,0xc5);
+DEFINE_GUID(IID_ITextHost, 0xc5bdd8d0,0xd26e,0x11ce,0xa8,0x9e,0x00,0xaa,0x00,0x6c,0xad,0xc5);
+DEFINE_GUID(IID_ITextHost2, 0xc5bdd8d0,0xd26e,0x11ce,0xa8,0x9e,0x00,0xaa,0x00,0x6c,0xad,0xc5);
+
+typedef struct ITextServices ITextServices;
+
+/*****************************************************************************
+ * ITextServices interface
+ */
+#if defined(__cplusplus) && !defined(CINTERFACE)
+struct ITextServices : public IUnknown
+{
+ virtual HRESULT STDMETHODCALLTYPE TxSendMessage(
+ UINT msg,
+ WPARAM wparam,
+ LPARAM lparam,
+ LRESULT* plresult) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxDraw(
+ DWORD dwDrawAspect,
+ LONG lindex,
+ void* pvAspect,
+ DVTARGETDEVICE* ptd,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ LPCRECTL lprcBounds,
+ LPCRECTL lprcWBounds,
+ LPRECT lprcUpdate,
+ BOOL (CALLBACK * pfnContinue)(DWORD),
+ DWORD dwContinue,
+ LONG lViewId) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetHScroll(
+ LONG* plMin,
+ LONG* plMax,
+ LONG* plPos,
+ LONG* plPage,
+ BOOL* pfEnabled) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetVScroll(
+ LONG* plMin,
+ LONG* plMax,
+ LONG* plPos,
+ LONG* plPage,
+ BOOL* pfEnabled) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE OnTxSetCursor(
+ DWORD dwDrawAspect,
+ LONG lindex,
+ void* pvAspect,
+ DVTARGETDEVICE* ptd,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ LPCRECT lprcClient,
+ INT x,
+ INT y) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxQueryHitPoint(
+ DWORD dwDrawAspect,
+ LONG lindex,
+ void* pvAspect,
+ DVTARGETDEVICE* ptd,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ LPCRECT lprcClient,
+ INT x,
+ INT y,
+ DWORD* pHitResult) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE OnTxInplaceActivate(
+ LPCRECT prcClient) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE OnTxUIActivate(
+ ) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE OnTxUIDeactivate(
+ ) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetText(
+ BSTR* pbstrText) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxSetText(
+ LPCWSTR pszText) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetCurrentTargetX(
+ LONG* x) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetBaseLinePos(
+ LONG* x) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetNaturalSize(
+ DWORD dwAspect,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ DVTARGETDEVICE* ptd,
+ DWORD dwMode,
+ const SIZEL* psizelExtent,
+ LONG* pwidth,
+ LONG* pheight) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetDropTarget(
+ IDropTarget** ppDropTarget) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE OnTxPropertyBitsChange(
+ DWORD dwMask,
+ DWORD dwBits) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetCachedSize(
+ DWORD* pdwWidth,
+ DWORD* pdwHeight) = 0;
+
+};
+#else
+typedef struct ITextServicesVtbl ITextServicesVtbl;
+struct ITextServices {
+ const ITextServicesVtbl* lpVtbl;
+};
+struct ITextServicesVtbl {
+ BEGIN_INTERFACE
+
+ /*** IUnknown methods ***/
+ HRESULT (STDMETHODCALLTYPE *QueryInterface)(
+ ITextServices* This,
+ REFIID riid,
+ void** ppvObject);
+
+ ULONG (STDMETHODCALLTYPE *AddRef)(
+ ITextServices* This);
+
+ ULONG (STDMETHODCALLTYPE *Release)(
+ ITextServices* This);
+
+ /*** ITextServices methods ***/
+ HRESULT (STDMETHODCALLTYPE *TxSendMessage)(
+ ITextServices* This,
+ UINT msg,
+ WPARAM wparam,
+ LPARAM lparam,
+ LRESULT* plresult);
+
+ HRESULT (STDMETHODCALLTYPE *TxDraw)(
+ ITextServices* This,
+ DWORD dwDrawAspect,
+ LONG lindex,
+ void* pvAspect,
+ DVTARGETDEVICE* ptd,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ LPCRECTL lprcBounds,
+ LPCRECTL lprcWBounds,
+ LPRECT lprcUpdate,
+ BOOL (CALLBACK * pfnContinue)(DWORD),
+ DWORD dwContinue,
+ LONG lViewId);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetHScroll)(
+ ITextServices* This,
+ LONG* plMin,
+ LONG* plMax,
+ LONG* plPos,
+ LONG* plPage,
+ BOOL* pfEnabled);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetVScroll)(
+ ITextServices* This,
+ LONG* plMin,
+ LONG* plMax,
+ LONG* plPos,
+ LONG* plPage,
+ BOOL* pfEnabled);
+
+ HRESULT (STDMETHODCALLTYPE *OnTxSetCursor)(
+ ITextServices* This,
+ DWORD dwDrawAspect,
+ LONG lindex,
+ void* pvAspect,
+ DVTARGETDEVICE* ptd,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ LPCRECT lprcClient,
+ INT x,
+ INT y);
+
+ HRESULT (STDMETHODCALLTYPE *TxQueryHitPoint)(
+ ITextServices* This,
+ DWORD dwDrawAspect,
+ LONG lindex,
+ void* pvAspect,
+ DVTARGETDEVICE* ptd,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ LPCRECT lprcClient,
+ INT x,
+ INT y,
+ DWORD* pHitResult);
+
+ HRESULT (STDMETHODCALLTYPE *OnTxInplaceActivate)(
+ ITextServices* This,
+ LPCRECT prcClient);
+
+ HRESULT (STDMETHODCALLTYPE *OnTxUIActivate)(
+ ITextServices* This);
+
+ HRESULT (STDMETHODCALLTYPE *OnTxUIDeactivate)(
+ ITextServices* This);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetText)(
+ ITextServices* This,
+ BSTR* pbstrText);
+
+ HRESULT (STDMETHODCALLTYPE *TxSetText)(
+ ITextServices* This,
+ LPCWSTR pszText);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetCurrentTargetX)(
+ ITextServices* This,
+ LONG* x);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetBaseLinePos)(
+ ITextServices* This,
+ LONG* x);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetNaturalSize)(
+ ITextServices* This,
+ DWORD dwAspect,
+ HDC hdcDraw,
+ HDC hicTargetDev,
+ DVTARGETDEVICE* ptd,
+ DWORD dwMode,
+ const SIZEL* psizelExtent,
+ LONG* pwidth,
+ LONG* pheight);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetDropTarget)(
+ ITextServices* This,
+ IDropTarget** ppDropTarget);
+
+ HRESULT (STDMETHODCALLTYPE *OnTxPropertyBitsChange)(
+ ITextServices* This,
+ DWORD dwMask,
+ DWORD dwBits);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetCachedSize)(
+ ITextServices* This,
+ DWORD* pdwWidth,
+ DWORD* pdwHeight);
+
+ END_INTERFACE
+};
+
+#ifdef COBJMACROS
+/*** IUnknown methods ***/
+#define ITextServices_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
+#define ITextServices_AddRef(p) (p)->lpVtbl->AddRef(p)
+#define ITextServices_Release(p) (p)->lpVtbl->Release(p)
+/*** ITextServices methods ***/
+#define ITextServices_TxSendMessage(p,a,b,c,d) (p)->lpVtbl->TxSendMessage(p,a,b,c,d)
+#define ITextServices_TxDraw(p,a,b,c,d,e,f,g,h,i,j,k,l) (p)->lpVtbl->TxDraw(p,a,b,c,d,e,f,g,h,i,j,k,l)
+#define ITextServices_TxGetHScroll(p,a,b,c,d,e) (p)->lpVtbl->TxGetHScroll(p,a,b,c,d,e)
+#define ITextServices_TxGetVScroll(p,a,b,c,d,e) (p)->lpVtbl->TxGetVScroll(p,a,b,c,d,e)
+#define ITextServices_OnTxSetCursor(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->OnTxSetCursor(p,a,b,c,d,e,f,g,h,i)
+#define ITextServices_TxQueryHitPoint(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->TxQueryHitPoint(p,a,b,c,d,e,f,g,h,i,j)
+#define ITextServices_OnTxInplaceActivate(p,a) (p)->lpVtbl->OnTxInplaceActivate(p,a)
+#define ITextServices_OnTxUIActivate(p) (p)->lpVtbl->OnTxUIActivate(p)
+#define ITextServices_OnTxUIDeactivate(p) (p)->lpVtbl->OnTxUIDeactivate(p)
+#define ITextServices_TxGetText(p,a) (p)->lpVtbl->TxGetText(p,a)
+#define ITextServices_TxSetText(p,a) (p)->lpVtbl->TxSetText(p,a)
+#define ITextServices_TxGetCurrentTargetX(p,a) (p)->lpVtbl->TxGetCurrentTargetX(p,a)
+#define ITextServices_TxGetBaseLinePos(p,a) (p)->lpVtbl->TxGetBaseLinePos(p,a)
+#define ITextServices_TxGetNaturalSize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->TxGetNaturalSize(p,a,b,c,d,e,f,g,h)
+#define ITextServices_TxGetDropTarget(p,a) (p)->lpVtbl->TxGetDropTarget(p,a)
+#define ITextServices_OnTxPropertyBitsChange(p,a,b) (p)->lpVtbl->OnTxPropertyBitsChange(p,a,b)
+#define ITextServices_TxGetCachedSize(p,a,b) (p)->lpVtbl->TxGetCachedSize(p,a,b)
+#endif
+
+#endif
+
+typedef enum _TXTBACKSTYLE {
+ TXTBACK_TRANSPARENT = 0,
+ TXTBACK_OPAQUE
+} TXTBACKSTYLE;
+
+enum TXTHITRESULT {
+ TXTHITRESULT_NOHIT = 0,
+ TXTHITRESULT_TRANSPARENT = 1,
+ TXTHITRESULT_CLOSE = 2,
+ TXTHITRESULT_HIT = 3
+};
+
+enum TXTNATURALSIZE {
+ TXTNS_FITTOCONTENT = 1,
+ TXTNS_ROUNDTOLINE = 2
+};
+
+enum TXTVIEW {
+ TXTVIEW_ACTIVE = 0,
+ TXTVIEW_INACTIVE = 1
+};
+
+typedef struct ITextHost ITextHost;
+
+/*****************************************************************************
+ * ITextHost interface
+ */
+#if defined(__cplusplus) && !defined(CINTERFACE)
+struct ITextHost : public IUnknown
+{
+ virtual HDC STDMETHODCALLTYPE TxGetDC(
+ ) = 0;
+
+ virtual INT STDMETHODCALLTYPE TxReleaseDC(
+ HDC hdc) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxShowScrollBar(
+ INT fnBar,
+ BOOL fShow) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxEnableScrollBar(
+ INT fuSBFlags,
+ INT fuArrowflags) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxSetScrollRange(
+ INT fnBar,
+ LONG nMinPos,
+ INT nMaxPos,
+ BOOL fRedraw) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxSetScrollPos(
+ INT fnBar,
+ INT nPos,
+ BOOL fRedraw) = 0;
+
+ virtual void STDMETHODCALLTYPE TxInvalidateRect(
+ LPCRECT prc,
+ BOOL fMode) = 0;
+
+ virtual void STDMETHODCALLTYPE TxViewChange(
+ BOOL fUpdate) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxCreateCaret(
+ HBITMAP hbmp,
+ INT xWidth,
+ INT yHeight) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxShowCaret(
+ BOOL fShow) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxSetCarentPos(
+ INT x,
+ INT y) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxSetTimer(
+ UINT idTimer,
+ UINT uTimeout) = 0;
+
+ virtual void STDMETHODCALLTYPE TxKillTimer(
+ UINT idTimer) = 0;
+
+ virtual void STDMETHODCALLTYPE TxScrollWindowEx(
+ INT dx,
+ INT dy,
+ LPCRECT lprcScroll,
+ LPCRECT lprcClip,
+ HRGN hRgnUpdate,
+ LPRECT lprcUpdate,
+ UINT fuScroll) = 0;
+
+ virtual void STDMETHODCALLTYPE TxSetCapture(
+ BOOL fCapture) = 0;
+
+ virtual void STDMETHODCALLTYPE TxSetFocus(
+ ) = 0;
+
+ virtual void STDMETHODCALLTYPE TxSetCursor(
+ HCURSOR hcur,
+ BOOL fText) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxScreenToClient(
+ LPPOINT lppt) = 0;
+
+ virtual BOOL STDMETHODCALLTYPE TxClientToScreen(
+ LPPOINT lppt) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxActivate(
+ LONG* plOldState) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxDeactivate(
+ LONG lNewState) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetClientRect(
+ LPRECT prc) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetViewInset(
+ LPRECT prc) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetCharFormat(
+ const CHARFORMATW** ppCF) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetParaFormat(
+ const PARAFORMAT** ppPF) = 0;
+
+ virtual COLORREF STDMETHODCALLTYPE TxGetSysColor(
+ int nIndex) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetBackStyle(
+ TXTBACKSTYLE* pStyle) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetMaxLength(
+ DWORD* plength) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetScrollbars(
+ DWORD* pdwScrollBar) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetPasswordChar(
+ WCHAR* pch) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetAcceleratorPos(
+ LONG* pch) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetExtent(
+ LPSIZEL lpExtent) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE OnTxCharFormatChange(
+ const CHARFORMATW* pcf) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE OnTxParaFormatChange(
+ const PARAFORMAT* ppf) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetPropertyBits(
+ DWORD dwMask,
+ DWORD* pdwBits) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxNotify(
+ DWORD iNotify,
+ void* pv) = 0;
+
+ virtual HIMC STDMETHODCALLTYPE TxImmGetContext(
+ ) = 0;
+
+ virtual void STDMETHODCALLTYPE TxImmReleaseContext(
+ HIMC himc) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE TxGetSelectionBarWidth(
+ LONG* lSelBarWidth) = 0;
+
+};
+#else
+typedef struct ITextHostVtbl ITextHostVtbl;
+struct ITextHost {
+ const ITextHostVtbl* lpVtbl;
+};
+struct ITextHostVtbl {
+ BEGIN_INTERFACE
+
+ /*** IUnknown methods ***/
+ HRESULT (STDMETHODCALLTYPE *QueryInterface)(
+ ITextHost* This,
+ REFIID riid,
+ void** ppvObject);
+
+ ULONG (STDMETHODCALLTYPE *AddRef)(
+ ITextHost* This);
+
+ ULONG (STDMETHODCALLTYPE *Release)(
+ ITextHost* This);
+
+ /*** ITextHost methods ***/
+ HDC (STDMETHODCALLTYPE *TxGetDC)(
+ ITextHost* This);
+
+ INT (STDMETHODCALLTYPE *TxReleaseDC)(
+ ITextHost* This,
+ HDC hdc);
+
+ BOOL (STDMETHODCALLTYPE *TxShowScrollBar)(
+ ITextHost* This,
+ INT fnBar,
+ BOOL fShow);
+
+ BOOL (STDMETHODCALLTYPE *TxEnableScrollBar)(
+ ITextHost* This,
+ INT fuSBFlags,
+ INT fuArrowflags);
+
+ BOOL (STDMETHODCALLTYPE *TxSetScrollRange)(
+ ITextHost* This,
+ INT fnBar,
+ LONG nMinPos,
+ INT nMaxPos,
+ BOOL fRedraw);
+
+ BOOL (STDMETHODCALLTYPE *TxSetScrollPos)(
+ ITextHost* This,
+ INT fnBar,
+ INT nPos,
+ BOOL fRedraw);
+
+ void (STDMETHODCALLTYPE *TxInvalidateRect)(
+ ITextHost* This,
+ LPCRECT prc,
+ BOOL fMode);
+
+ void (STDMETHODCALLTYPE *TxViewChange)(
+ ITextHost* This,
+ BOOL fUpdate);
+
+ BOOL (STDMETHODCALLTYPE *TxCreateCaret)(
+ ITextHost* This,
+ HBITMAP hbmp,
+ INT xWidth,
+ INT yHeight);
+
+ BOOL (STDMETHODCALLTYPE *TxShowCaret)(
+ ITextHost* This,
+ BOOL fShow);
+
+ BOOL (STDMETHODCALLTYPE *TxSetCarentPos)(
+ ITextHost* This,
+ INT x,
+ INT y);
+
+ BOOL (STDMETHODCALLTYPE *TxSetTimer)(
+ ITextHost* This,
+ UINT idTimer,
+ UINT uTimeout);
+
+ void (STDMETHODCALLTYPE *TxKillTimer)(
+ ITextHost* This,
+ UINT idTimer);
+
+ void (STDMETHODCALLTYPE *TxScrollWindowEx)(
+ ITextHost* This,
+ INT dx,
+ INT dy,
+ LPCRECT lprcScroll,
+ LPCRECT lprcClip,
+ HRGN hRgnUpdate,
+ LPRECT lprcUpdate,
+ UINT fuScroll);
+
+ void (STDMETHODCALLTYPE *TxSetCapture)(
+ ITextHost* This,
+ BOOL fCapture);
+
+ void (STDMETHODCALLTYPE *TxSetFocus)(
+ ITextHost* This);
+
+ void (STDMETHODCALLTYPE *TxSetCursor)(
+ ITextHost* This,
+ HCURSOR hcur,
+ BOOL fText);
+
+ BOOL (STDMETHODCALLTYPE *TxScreenToClient)(
+ ITextHost* This,
+ LPPOINT lppt);
+
+ BOOL (STDMETHODCALLTYPE *TxClientToScreen)(
+ ITextHost* This,
+ LPPOINT lppt);
+
+ HRESULT (STDMETHODCALLTYPE *TxActivate)(
+ ITextHost* This,
+ LONG* plOldState);
+
+ HRESULT (STDMETHODCALLTYPE *TxDeactivate)(
+ ITextHost* This,
+ LONG lNewState);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetClientRect)(
+ ITextHost* This,
+ LPRECT prc);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetViewInset)(
+ ITextHost* This,
+ LPRECT prc);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetCharFormat)(
+ ITextHost* This,
+ const CHARFORMATW** ppCF);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetParaFormat)(
+ ITextHost* This,
+ const PARAFORMAT** ppPF);
+
+ COLORREF (STDMETHODCALLTYPE *TxGetSysColor)(
+ ITextHost* This,
+ int nIndex);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetBackStyle)(
+ ITextHost* This,
+ TXTBACKSTYLE* pStyle);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetMaxLength)(
+ ITextHost* This,
+ DWORD* plength);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetScrollbars)(
+ ITextHost* This,
+ DWORD* pdwScrollBar);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetPasswordChar)(
+ ITextHost* This,
+ WCHAR* pch);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetAcceleratorPos)(
+ ITextHost* This,
+ LONG* pch);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetExtent)(
+ ITextHost* This,
+ LPSIZEL lpExtent);
+
+ HRESULT (STDMETHODCALLTYPE *OnTxCharFormatChange)(
+ ITextHost* This,
+ const CHARFORMATW* pcf);
+
+ HRESULT (STDMETHODCALLTYPE *OnTxParaFormatChange)(
+ ITextHost* This,
+ const PARAFORMAT* ppf);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetPropertyBits)(
+ ITextHost* This,
+ DWORD dwMask,
+ DWORD* pdwBits);
+
+ HRESULT (STDMETHODCALLTYPE *TxNotify)(
+ ITextHost* This,
+ DWORD iNotify,
+ void* pv);
+
+ HIMC (STDMETHODCALLTYPE *TxImmGetContext)(
+ ITextHost* This);
+
+ void (STDMETHODCALLTYPE *TxImmReleaseContext)(
+ ITextHost* This,
+ HIMC himc);
+
+ HRESULT (STDMETHODCALLTYPE *TxGetSelectionBarWidth)(
+ ITextHost* This,
+ LONG* lSelBarWidth);
+
+ END_INTERFACE
+};
+
+#ifdef COBJMACROS
+/*** IUnknown methods ***/
+#define ITextHost_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
+#define ITextHost_AddRef(p) (p)->lpVtbl->AddRef(p)
+#define ITextHost_Release(p) (p)->lpVtbl->Release(p)
+/*** ITextHost methods ***/
+#define ITextHost_TxGetDC(p) (p)->lpVtbl->TxGetDC(p)
+#define ITextHost_TxReleaseDC(p,a) (p)->lpVtbl->TxReleaseDC(p,a)
+#define ITextHost_TxShowScrollBar(p,a,b) (p)->lpVtbl->TxShowScrollBar(p,a,b)
+#define ITextHost_TxEnableScrollBar(p,a,b) (p)->lpVtbl->TxEnableScrollBar(p,a,b)
+#define ITextHost_TxSetScrollRange(p,a,b,c,d) (p)->lpVtbl->TxSetScrollRange(p,a,b,c,d)
+#define ITextHost_TxSetScrollPos(p,a,b,c) (p)->lpVtbl->TxSetScrollPos(p,a,b,c)
+#define ITextHost_TxInvalidateRect(p,a,b) (p)->lpVtbl->TxInvalidateRect(p,a,b)
+#define ITextHost_TxViewChange(p,a) (p)->lpVtbl->TxViewChange(p,a)
+#define ITextHost_TxCreateCaret(p,a,b,c) (p)->lpVtbl->TxCreateCaret(p,a,b,c)
+#define ITextHost_TxShowCaret(p,a) (p)->lpVtbl->TxShowCaret(p,a)
+#define ITextHost_TxSetCarentPos(p,a,b) (p)->lpVtbl->TxSetCarentPos(p,a,b)
+#define ITextHost_TxSetTimer(p,a,b) (p)->lpVtbl->TxSetTimer(p,a,b)
+#define ITextHost_TxKillTimer(p,a) (p)->lpVtbl->TxKillTimer(p,a)
+#define ITextHost_TxScrollWindowEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->TxScrollWindowEx(p,a,b,c,d,e,f,g)
+#define ITextHost_TxSetCapture(p,a) (p)->lpVtbl->TxSetCapture(p,a)
+#define ITextHost_TxSetFocus(p) (p)->lpVtbl->TxSetFocus(p)
+#define ITextHost_TxSetCursor(p,a,b) (p)->lpVtbl->TxSetCursor(p,a,b)
+#define ITextHost_TxScreenToClient(p,a) (p)->lpVtbl->TxScreenToClient(p,a)
+#define ITextHost_TxClientToScreen(p,a) (p)->lpVtbl->TxClientToScreen(p,a)
+#define ITextHost_TxActivate(p,a) (p)->lpVtbl->TxActivate(p,a)
+#define ITextHost_TxDeactivate(p,a) (p)->lpVtbl->TxDeactivate(p,a)
+#define ITextHost_TxGetClientRect(p,a) (p)->lpVtbl->TxGetClientRect(p,a)
+#define ITextHost_TxGetViewInset(p,a) (p)->lpVtbl->TxGetViewInset(p,a)
+#define ITextHost_TxGetCharFormat(p,a) (p)->lpVtbl->TxGetCharFormat(p,a)
+#define ITextHost_TxGetParaFormat(p,a) (p)->lpVtbl->TxGetParaFormat(p,a)
+#define ITextHost_TxGetSysColor(p,a) (p)->lpVtbl->TxGetSysColor(p,a)
+#define ITextHost_TxGetBackStyle(p,a) (p)->lpVtbl->TxGetBackStyle(p,a)
+#define ITextHost_TxGetMaxLength(p,a) (p)->lpVtbl->TxGetMaxLength(p,a)
+#define ITextHost_TxGetScrollbars(p,a) (p)->lpVtbl->TxGetScrollbars(p,a)
+#define ITextHost_TxGetPasswordChar(p,a) (p)->lpVtbl->TxGetPasswordChar(p,a)
+#define ITextHost_TxGetAcceleratorPos(p,a) (p)->lpVtbl->TxGetAcceleratorPos(p,a)
+#define ITextHost_TxGetExtent(p,a) (p)->lpVtbl->TxGetExtent(p,a)
+#define ITextHost_OnTxCharFormatChange(p,a) (p)->lpVtbl->OnTxCharFormatChange(p,a)
+#define ITextHost_OnTxParaFormatChange(p,a) (p)->lpVtbl->OnTxParaFormatChange(p,a)
+#define ITextHost_TxGetPropertyBits(p,a,b) (p)->lpVtbl->TxGetPropertyBits(p,a,b)
+#define ITextHost_TxNotify(p,a,b) (p)->lpVtbl->TxNotify(p,a,b)
+#define ITextHost_TxImmGetContext(p) (p)->lpVtbl->TxImmGetContext(p)
+#define ITextHost_TxImmReleaseContext(p,a) (p)->lpVtbl->TxImmReleaseContext(p,a)
+#define ITextHost_TxGetSelectionBarWidth(p,a) (p)->lpVtbl->TxGetSelectionBarWidth(p,a)
+#endif
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_TEXTSERV_H */
More information about the wine-patches
mailing list