3 #define __ASM_STDCALL_FUNC(name,args,code)
5 #define typeof(X_) __typeof_ ## X_
17 struct tagDVTARGETDEVICE
;
20 #define WINAPI __stdcall
22 #define HDC struct HDC__*
25 #define ITextHost struct ITextHost
27 #define UINT unsigned int
29 #define LPCRECT const struct tagRECT *
30 #define LPRECT struct tagRECT *
31 #define LPCRECTL const struct _RECTL*
32 #define CHARFORMATW struct _charformatw
33 #define PARAFORMAT struct _paraformat
34 #define DWORD unsigned int /* HACK */
35 #define COLORREF DWORD
36 #define LONG int /* HACK */
37 #define WPARAM unsigned long
41 #define LPPOINT struct tagPOINT*
42 #define TXTBACKSTYLE enum _TXTBACKSTYLE
43 #define WCHAR unsigned short
45 #define LPCWSTR const WCHAR *
46 #define SIZEL struct tagSIZE
47 #define LPSIZEL struct tagSIZE*
48 #define ITextServices struct ITextServices
50 #define DVTARGETDEVICE struct tagDVTARGETDEVICE
52 typedef HDC (WINAPI
typeof(ITextHostImpl_TxGetDC
))(ITextHost
* iface
);
53 typedef int (WINAPI
typeof(ITextHostImpl_TxReleaseDC
))(ITextHost
*iface
,HDC hdc
);
54 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxShowScrollBar
))(ITextHost
*iface
,INT fnBar
,BOOL fShow
);
55 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxEnableScrollBar
))(ITextHost
*iface
,INT fuSBFlags
,INT fuArrowflags
);
56 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxSetScrollRange
))(ITextHost
*iface
,INT fnBar
,LONG nMinPos
,INT nMaxPos
,BOOL fRedraw
);
57 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxSetScrollPos
))(ITextHost
*iface
,INT fnBar
,INT nPos
,BOOL fRedraw
);
58 typedef void (WINAPI
typeof(ITextHostImpl_TxInvalidateRect
))(ITextHost
*iface
,LPCRECT prc
,BOOL fMode
);
59 typedef void (WINAPI
typeof(ITextHostImpl_TxViewChange
))(ITextHost
*iface
,BOOL fUpdate
);
60 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxCreateCaret
))(ITextHost
*iface
,HBITMAP hbmp
,INT xWidth
, INT yHeight
);
61 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxShowCaret
))(ITextHost
*iface
, BOOL fShow
);
62 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxSetCaretPos
))(ITextHost
*iface
,INT x
, INT y
);
63 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxSetTimer
))(ITextHost
*iface
,UINT idTimer
, UINT uTimeout
);
64 typedef void (WINAPI
typeof(ITextHostImpl_TxKillTimer
))(ITextHost
*iface
,UINT idTimer
);
65 typedef void (WINAPI
typeof(ITextHostImpl_TxScrollWindowEx
))(ITextHost
*iface
,INT dx
, INT dy
,LPCRECT lprcScroll
,LPCRECT lprcClip
,HRGN hRgnUpdate
,LPRECT lprcUpdate
,UINT fuScroll
);
66 typedef void (WINAPI
typeof(ITextHostImpl_TxSetCapture
))(ITextHost
*iface
,BOOL fCapture
);
67 typedef void (WINAPI
typeof(ITextHostImpl_TxSetFocus
))(ITextHost
*iface
);
68 typedef void (WINAPI
typeof(ITextHostImpl_TxSetCursor
))(ITextHost
*iface
,HCURSOR hcur
,BOOL fText
);
69 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxScreenToClient
))(ITextHost
*iface
,LPPOINT lppt
);
70 typedef BOOL (WINAPI
typeof(ITextHostImpl_TxClientToScreen
))(ITextHost
*iface
,LPPOINT lppt
);
71 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxActivate
))(ITextHost
*iface
,LONG
*plOldState
);
72 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxDeactivate
))(ITextHost
*iface
,LONG lNewState
);
73 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetClientRect
))(ITextHost
*iface
,LPRECT prc
);
74 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetViewInset
))(ITextHost
*iface
,LPRECT prc
);
75 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetCharFormat
))(ITextHost
*iface
,const CHARFORMATW
**ppCF
);
76 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetParaFormat
))(ITextHost
*iface
,const PARAFORMAT
**ppPF
);
77 typedef COLORREF (WINAPI
typeof(ITextHostImpl_TxGetSysColor
))(ITextHost
*iface
,int nIndex
);
78 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetBackStyle
))(ITextHost
*iface
,TXTBACKSTYLE
*pStyle
);
79 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetMaxLength
))(ITextHost
*iface
,DWORD
*pLength
);
80 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetScrollBars
))(ITextHost
*iface
,DWORD
*pdwScrollBar
);
81 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetPasswordChar
))(ITextHost
*iface
,WCHAR
*pch
);
82 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetAcceleratorPos
))(ITextHost
*iface
,LONG
*pch
);
83 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetExtent
))(ITextHost
*iface
,LPSIZEL lpExtent
);
84 typedef HRESULT (WINAPI
typeof(ITextHostImpl_OnTxCharFormatChange
))(ITextHost
*iface
,const CHARFORMATW
*pcf
);
85 typedef HRESULT (WINAPI
typeof(ITextHostImpl_OnTxParaFormatChange
))(ITextHost
*iface
,const PARAFORMAT
*ppf
);
86 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetPropertyBits
))(ITextHost
*iface
,DWORD dwMask
,DWORD
*pdwBits
);
87 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxNotify
))(ITextHost
*iface
,DWORD iNotify
,void *pv
);
88 typedef HIMC (WINAPI
typeof(ITextHostImpl_TxImmGetContext
))(ITextHost
*iface
);
89 typedef void (WINAPI
typeof(ITextHostImpl_TxImmReleaseContext
))(ITextHost
*iface
,HIMC himc
);
90 typedef HRESULT (WINAPI
typeof(ITextHostImpl_TxGetSelectionBarWidth
))(ITextHost
*iface
,LONG
*lSelBarWidth
);
92 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxSendMessage
))(ITextServices
*iface
,UINT msg
,WPARAM wparam
,LPARAM lparam
,LRESULT
* plresult
);
93 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxDraw
))(ITextServices
*iface
,DWORD dwDrawAspect
,LONG lindex
,void* pvAspect
,DVTARGETDEVICE
* ptd
,HDC hdcDraw
,HDC hdcTargetDev
,LPCRECTL lprcBounds
,LPCRECTL lprcWBounds
,LPRECT lprcUpdate
,BOOL (__stdcall
* pfnContinue
)(DWORD
),DWORD dwContinue
,LONG lViewId
);
94 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetHScroll
))(ITextServices
*iface
,LONG
* plMin
,LONG
* plMax
,LONG
* plPos
,LONG
* plPage
,BOOL
* pfEnabled
);
95 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetVScroll
))(ITextServices
*iface
,LONG
* plMin
,LONG
* plMax
,LONG
* plPos
,LONG
* plPage
,BOOL
* pfEnabled
);
96 typedef HRESULT (WINAPI
typeof(fnTextSrv_OnTxSetCursor
))(ITextServices
*iface
,DWORD dwDrawAspect
,LONG lindex
,void* pvAspect
,DVTARGETDEVICE
* ptd
,HDC hdcDraw
,HDC hicTargetDev
,LPCRECT lprcClient
,INT x
, INT y
);
97 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxQueryHitPoint
))(ITextServices
*iface
,DWORD dwDrawAspect
,LONG lindex
,void* pvAspect
,DVTARGETDEVICE
* ptd
,HDC hdcDraw
,HDC hicTargetDev
,LPCRECT lprcClient
,INT x
, INT y
,DWORD
* pHitResult
);
98 typedef HRESULT (WINAPI
typeof(fnTextSrv_OnTxInplaceActivate
))(ITextServices
*iface
,LPCRECT prcClient
);
99 typedef HRESULT (WINAPI
typeof(fnTextSrv_OnTxInplaceDeactivate
))(ITextServices
*iface
);
100 typedef HRESULT (WINAPI
typeof(fnTextSrv_OnTxUIActivate
))(ITextServices
*iface
);
101 typedef HRESULT (WINAPI
typeof(fnTextSrv_OnTxUIDeactivate
))(ITextServices
*iface
);
102 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetText
))(ITextServices
*iface
,BSTR
* pbstrText
);
103 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxSetText
))(ITextServices
*iface
,LPCWSTR pszText
);
104 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetCurTargetX
))(ITextServices
*iface
,LONG
* x
);
105 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetBaseLinePos
))(ITextServices
*iface
,LONG
* x
);
106 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetNaturalSize
))(ITextServices
*iface
,DWORD dwAspect
,HDC hdcDraw
,HDC hicTargetDev
,DVTARGETDEVICE
* ptd
,DWORD dwMode
,const SIZEL
* psizelExtent
,LONG
* pwidth
,LONG
* pheight
);
107 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetDropTarget
))(ITextServices
*iface
,struct IDropTarget
** ppDropTarget
);
108 typedef HRESULT (WINAPI
typeof(fnTextSrv_OnTxPropertyBitsChange
))(ITextServices
*iface
,DWORD dwMask
,DWORD dwBits
);
109 typedef HRESULT (WINAPI
typeof(fnTextSrv_TxGetCachedSize
))(ITextServices
*iface
,DWORD
* pdwWidth
,DWORD
* pdwHeight
);
141 #undef DVTARGETDEVICE