ReactOS 0.4.16-dev-1067-ge98bba2
riched20.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSendMessage (ITextServices *iface, UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *result)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw (ITextServices *iface, DWORD aspect, LONG index, void *aspect_info, DVTARGETDEVICE *td, HDC draw, HDC target, const RECTL *bounds, const RECTL *mf_bounds, RECT *update, BOOL(CALLBACK *continue_fn)(DWORD), DWORD continue_param, LONG view_id)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetHScroll (ITextServices *iface, LONG *min_pos, LONG *max_pos, LONG *pos, LONG *page, BOOL *enabled)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetVScroll (ITextServices *iface, LONG *min_pos, LONG *max_pos, LONG *pos, LONG *page, BOOL *enabled)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxSetCursor (ITextServices *iface, DWORD aspect, LONG index, void *aspect_info, DVTARGETDEVICE *td, HDC draw, HDC target, const RECT *client, INT x, INT y)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxQueryHitPoint (ITextServices *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y, DWORD *pHitResult)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInPlaceActivate (ITextServices *iface, const RECT *client)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInPlaceDeactivate (ITextServices *iface)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIActivate (ITextServices *iface)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIDeactivate (ITextServices *iface)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetText (ITextServices *iface, BSTR *text)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSetText (ITextServices *iface, const WCHAR *text)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCurTargetX (ITextServices *iface, LONG *x)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetBaseLinePos (ITextServices *iface, LONG *x)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetNaturalSize (ITextServices *iface, DWORD aspect, HDC draw, HDC target, DVTARGETDEVICE *td, DWORD mode, const SIZEL *extent, LONG *width, LONG *height)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetDropTarget (ITextServices *iface, IDropTarget **ppDropTarget)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxPropertyBitsChange (ITextServices *iface, DWORD mask, DWORD bits)
 
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCachedSize (ITextServices *iface, DWORD *pdwWidth, DWORD *pdwHeight)
 
DECLSPEC_HIDDEN HDC __thiscall ITextHostImpl_TxGetDC (ITextHost2 *iface)
 
DECLSPEC_HIDDEN INT __thiscall ITextHostImpl_TxReleaseDC (ITextHost2 *iface, HDC hdc)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxShowScrollBar (ITextHost2 *iface, INT bar, BOOL show)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxEnableScrollBar (ITextHost2 *iface, INT bar, INT arrows)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetScrollRange (ITextHost2 *iface, INT bar, LONG min_pos, INT max_pos, BOOL redraw)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetScrollPos (ITextHost2 *iface, INT bar, INT pos, BOOL redraw)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxInvalidateRect (ITextHost2 *iface, const RECT *rect, BOOL mode)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxViewChange (ITextHost2 *iface, BOOL update)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxCreateCaret (ITextHost2 *iface, HBITMAP bitmap, INT width, INT height)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxShowCaret (ITextHost2 *iface, BOOL show)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetCaretPos (ITextHost2 *iface, INT x, INT y)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetTimer (ITextHost2 *iface, UINT id, UINT timeout)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxKillTimer (ITextHost2 *iface, UINT id)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxScrollWindowEx (ITextHost2 *iface, INT dx, INT dy, const RECT *scroll, const RECT *clip, HRGN update_rgn, RECT *update_rect, UINT flags)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetCapture (ITextHost2 *iface, BOOL capture)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetFocus (ITextHost2 *iface)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetCursor (ITextHost2 *iface, HCURSOR cursor, BOOL text)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxScreenToClient (ITextHost2 *iface, POINT *pt)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxClientToScreen (ITextHost2 *iface, POINT *pt)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxActivate (ITextHost2 *iface, LONG *old_state)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxDeactivate (ITextHost2 *iface, LONG new_state)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetClientRect (ITextHost2 *iface, RECT *rect)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetViewInset (ITextHost2 *iface, RECT *rect)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetCharFormat (ITextHost2 *iface, const CHARFORMATW **ppCF)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetParaFormat (ITextHost2 *iface, const PARAFORMAT **fmt)
 
DECLSPEC_HIDDEN COLORREF __thiscall ITextHostImpl_TxGetSysColor (ITextHost2 *iface, int index)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetBackStyle (ITextHost2 *iface, TXTBACKSTYLE *style)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetMaxLength (ITextHost2 *iface, DWORD *length)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetScrollBars (ITextHost2 *iface, DWORD *scrollbars)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPasswordChar (ITextHost2 *iface, WCHAR *c)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetAcceleratorPos (ITextHost2 *iface, LONG *pos)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetExtent (ITextHost2 *iface, SIZEL *extent)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_OnTxCharFormatChange (ITextHost2 *iface, const CHARFORMATW *pcf)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_OnTxParaFormatChange (ITextHost2 *iface, const PARAFORMAT *ppf)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPropertyBits (ITextHost2 *iface, DWORD mask, DWORD *bits)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxNotify (ITextHost2 *iface, DWORD iNotify, void *pv)
 
DECLSPEC_HIDDEN HIMC __thiscall ITextHostImpl_TxImmGetContext (ITextHost2 *iface)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxImmReleaseContext (ITextHost2 *iface, HIMC context)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetSelectionBarWidth (ITextHost2 *iface, LONG *width)
 
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxIsDoubleClickPending (ITextHost2 *iface)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetWindow (ITextHost2 *iface, HWND *hwnd)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxSetForegroundWindow (ITextHost2 *iface)
 
DECLSPEC_HIDDEN HPALETTE __thiscall ITextHostImpl_TxGetPalette (ITextHost2 *iface)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetEastAsianFlags (ITextHost2 *iface, LONG *flags)
 
DECLSPEC_HIDDEN HCURSOR __thiscall ITextHostImpl_TxSetCursor2 (ITextHost2 *iface, HCURSOR cursor, BOOL text)
 
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxFreeTextServicesNotification (ITextHost2 *iface)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetEditStyle (ITextHost2 *iface, DWORD item, DWORD *data)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetWindowStyles (ITextHost2 *iface, DWORD *style, DWORD *ex_style)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxShowDropCaret (ITextHost2 *iface, BOOL show, HDC hdc, const RECT *rect)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxDestroyCaret (ITextHost2 *iface)
 
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetHorzExtent (ITextHost2 *iface, LONG *horz_extent)
 

Function Documentation

◆ fnTextSrv_OnTxInPlaceActivate()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInPlaceActivate ( ITextServices *  iface,
const RECT client 
)

Definition at line 254 of file txtsrv.c.

255{
257 HRESULT hr;
258 BOOL old_active = services->editor->in_place_active;
259
260 TRACE( "%p: %s\n", services, wine_dbgstr_rect( client ) );
261
262 services->editor->in_place_active = TRUE;
264 if (FAILED( hr ))
265 {
266 services->editor->in_place_active = old_active;
267 return hr;
268 }
269 ME_RewrapRepaint( services->editor );
270 return S_OK;
271}
static const char * wine_dbgstr_rect(const RECT *prc)
Definition: atltest.h:160
#define TRUE
Definition: types.h:120
static struct text_services * impl_from_ITextServices(ITextServices *iface)
Definition: txtsrv.c:97
static HRESULT update_client_rect(struct text_services *services, const RECT *client)
Definition: txtsrv.c:133
void ME_RewrapRepaint(ME_TextEditor *editor) DECLSPEC_HIDDEN
Definition: paint.c:156
unsigned int BOOL
Definition: ntddk_ex.h:94
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
static FILE * client
Definition: client.c:41
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4

◆ fnTextSrv_OnTxInPlaceDeactivate()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInPlaceDeactivate ( ITextServices *  iface)

Definition at line 274 of file txtsrv.c.

275{
277
278 TRACE( "%p\n", services );
279 services->editor->in_place_active = FALSE;
280 return S_OK;
281}
#define FALSE
Definition: types.h:117

◆ fnTextSrv_OnTxPropertyBitsChange()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxPropertyBitsChange ( ITextServices *  iface,
DWORD  mask,
DWORD  bits 
)

Definition at line 410 of file txtsrv.c.

411{
413 DWORD scrollbars;
414 HRESULT hr;
415 BOOL repaint = FALSE;
416
417 TRACE( "%p, mask %08x, bits %08x\n", services, mask, bits );
418
419 services->editor->props = (services->editor->props & ~mask) | (bits & mask);
421 services->editor->bWordWrap = (services->editor->props & TXTBIT_WORDWRAP) && (services->editor->props & TXTBIT_MULTILINE);
422
424 {
425 hr = ITextHost_TxGetScrollBars( services->editor->texthost, &scrollbars );
426 if (SUCCEEDED( hr ))
427 {
428 if ((services->editor->scrollbars ^ scrollbars) & WS_HSCROLL)
429 ITextHost_TxShowScrollBar( services->editor->texthost, SB_HORZ, (scrollbars & WS_HSCROLL) &&
430 services->editor->nTotalWidth > services->editor->sizeWindow.cx );
431 if ((services->editor->scrollbars ^ scrollbars) & WS_VSCROLL)
432 ITextHost_TxShowScrollBar( services->editor->texthost, SB_VERT, (scrollbars & WS_VSCROLL) &&
433 services->editor->nTotalLength > services->editor->sizeWindow.cy );
434 services->editor->scrollbars = scrollbars;
435 }
436 }
437
438 if ((mask & TXTBIT_HIDESELECTION) && !services->editor->bHaveFocus) ME_InvalidateSelection( services->editor );
439
441 {
442 LONG width;
443
444 hr = ITextHost_TxGetSelectionBarWidth( services->editor->texthost, &width );
445 if (hr == S_OK)
446 {
447 ITextHost_TxInvalidateRect( services->editor->texthost, &services->editor->rcFormat, TRUE );
448 services->editor->rcFormat.left -= services->editor->selofs;
449 services->editor->selofs = width ? SELECTIONBAR_WIDTH : 0; /* FIXME: convert from HIMETRIC */
450 services->editor->rcFormat.left += services->editor->selofs;
451 repaint = TRUE;
452 }
453 }
454
456 {
458 if (SUCCEEDED( hr )) repaint = TRUE;
459 }
460
462 {
463 if (bits & TXTBIT_USEPASSWORD) ITextHost_TxGetPasswordChar( services->editor->texthost, &services->editor->password_char );
464 else services->editor->password_char = 0;
465 repaint = TRUE;
466 }
467
468 if (repaint) ME_RewrapRepaint( services->editor );
469
470 return S_OK;
471}
#define NULL
Definition: types.h:112
#define ITextHost_TxShowScrollBar(This, a, b)
Definition: editor.h:335
#define ITextHost_TxInvalidateRect(This, a, b)
Definition: editor.h:339
void ME_InvalidateSelection(ME_TextEditor *editor) DECLSPEC_HIDDEN
Definition: paint.c:1247
#define ITextHost_TxGetScrollBars(This, a)
Definition: editor.h:361
#define ITextHost_TxGetSelectionBarWidth(This, a)
Definition: editor.h:371
#define ITextHost_TxGetPasswordChar(This, a)
Definition: editor.h:362
#define SELECTIONBAR_WIDTH
Definition: editstr.h:99
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLint GLsizei width
Definition: gl.h:1546
GLenum GLint GLuint mask
Definition: glext.h:6028
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:10929
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define WS_VSCROLL
Definition: pedump.c:627
long LONG
Definition: pedump.c:60
#define WS_HSCROLL
Definition: pedump.c:628
#define TXTBIT_WORDWRAP
Definition: textserv.h:195
#define TXTBIT_CLIENTRECTCHANGE
Definition: textserv.h:205
#define TXTBIT_MULTILINE
Definition: textserv.h:186
#define TXTBIT_SCROLLBARCHANGE
Definition: textserv.h:201
#define TXTBIT_USEPASSWORD
Definition: textserv.h:189
#define TXTBIT_HIDESELECTION
Definition: textserv.h:190
#define TXTBIT_SELBARCHANGE
Definition: textserv.h:194
#define SB_VERT
Definition: winuser.h:553
#define SB_HORZ
Definition: winuser.h:552

◆ fnTextSrv_OnTxSetCursor()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxSetCursor ( ITextServices *  iface,
DWORD  aspect,
LONG  index,
void aspect_info,
DVTARGETDEVICE *  td,
HDC  draw,
HDC  target,
const RECT client,
INT  x,
INT  y 
)

Definition at line 224 of file txtsrv.c.

227{
229
230 TRACE( "%p: %d, %d, %p, %p, draw %p target %p client %s pos (%d, %d)\n", services, aspect, index, aspect_info, td, draw,
232
233 if (aspect != DVASPECT_CONTENT || index || aspect_info || td || draw || target || client)
234 FIXME( "Ignoring most params\n" );
235
236 link_notify( services->editor, WM_SETCURSOR, 0, MAKELPARAM( x, y ) );
237 editor_set_cursor( services->editor, x, y );
238 return S_OK;
239}
#define FIXME(fmt,...)
Definition: precomp.h:53
void editor_set_cursor(ME_TextEditor *editor, int x, int y)
Definition: editor.c:2824
void link_notify(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: editor.c:3122
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLuint index
Definition: glext.h:6031
GLenum target
Definition: glext.h:7315
#define MAKELPARAM(l, h)
Definition: winuser.h:4019
#define WM_SETCURSOR
Definition: winuser.h:1647

◆ fnTextSrv_OnTxUIActivate()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIActivate ( ITextServices *  iface)

Definition at line 284 of file txtsrv.c.

285{
287
288 FIXME( "%p: STUB\n", services );
289 return E_NOTIMPL;
290}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fnTextSrv_OnTxUIDeactivate()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIDeactivate ( ITextServices *  iface)

Definition at line 293 of file txtsrv.c.

294{
296
297 FIXME( "%p: STUB\n", services );
298 return E_NOTIMPL;
299}

◆ fnTextSrv_TxDraw()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw ( ITextServices *  iface,
DWORD  aspect,
LONG  index,
void aspect_info,
DVTARGETDEVICE *  td,
HDC  draw,
HDC  target,
const RECTL bounds,
const RECTL mf_bounds,
RECT update,
BOOL(CALLBACK *continue_fn)(DWORD ,
DWORD  continue_param,
LONG  view_id 
)

Definition at line 154 of file txtsrv.c.

159{
161 HRESULT hr;
162 HDC dc = draw;
163 BOOL rewrap = FALSE;
164
165 TRACE( "%p: aspect %d, %d, %p, %p, draw %p, target %p, bounds %s, mf_bounds %s, update %s, %p, %d, view %d\n",
166 services, aspect, index, aspect_info, td, draw, target, wine_dbgstr_rect( (RECT *)bounds ),
167 wine_dbgstr_rect( (RECT *)mf_bounds ), wine_dbgstr_rect( update ), continue_fn, continue_param, view_id );
168
169 if (aspect != DVASPECT_CONTENT || aspect_info || td || target || mf_bounds || continue_fn )
170 FIXME( "Many arguments are ignored\n" );
171
172 hr = update_client_rect( services, (RECT *)bounds );
173 if (FAILED( hr )) return hr;
174 if (hr == S_OK) rewrap = TRUE;
175
176 if (!dc && services->editor->in_place_active)
177 dc = ITextHost_TxGetDC( services->editor->texthost );
178 if (!dc) return E_FAIL;
179
180 if (rewrap)
181 {
184 }
185
186 if (!services->editor->bEmulateVersion10 || services->editor->nEventMask & ENM_UPDATE)
187 ITextHost_TxNotify( services->editor->texthost, EN_UPDATE, NULL );
188
189 editor_draw( services->editor, dc, update );
190
191 if (!draw) ITextHost_TxReleaseDC( services->editor->texthost, dc );
192 return S_OK;
193}
HDC dc
Definition: cylfrac.c:34
#define E_FAIL
Definition: ddrawi.h:102
void editor_draw(ME_TextEditor *editor, HDC hDC, const RECT *update) DECLSPEC_HIDDEN
Definition: paint.c:33
BOOL wrap_marked_paras_dc(ME_TextEditor *editor, HDC hdc, BOOL invalidate) DECLSPEC_HIDDEN
Definition: wrap.c:1023
void editor_mark_rewrap_all(ME_TextEditor *editor) DECLSPEC_HIDDEN
Definition: para.c:237
#define ITextHost_TxNotify(This, a, b)
Definition: editor.h:368
#define ITextHost_TxGetDC(This)
Definition: editor.h:333
#define ITextHost_TxReleaseDC(This, a)
Definition: editor.h:334
static HDC
Definition: imagelist.c:88
#define ENM_UPDATE
Definition: richedit.h:469
#define EN_UPDATE
Definition: winuser.h:2039

◆ fnTextSrv_TxGetBaseLinePos()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetBaseLinePos ( ITextServices *  iface,
LONG x 
)

Definition at line 352 of file txtsrv.c.

353{
355
356 FIXME( "%p: STUB\n", services );
357 return E_NOTIMPL;
358}

◆ fnTextSrv_TxGetCachedSize()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCachedSize ( ITextServices *  iface,
DWORD pdwWidth,
DWORD pdwHeight 
)

Definition at line 474 of file txtsrv.c.

475{
477
478 FIXME( "%p: STUB\n", services );
479 return E_NOTIMPL;
480}

◆ fnTextSrv_TxGetCurTargetX()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCurTargetX ( ITextServices *  iface,
LONG x 
)

Definition at line 343 of file txtsrv.c.

344{
346
347 FIXME( "%p: STUB\n", services );
348 return E_NOTIMPL;
349}

◆ fnTextSrv_TxGetDropTarget()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetDropTarget ( ITextServices *  iface,
IDropTarget **  ppDropTarget 
)

Definition at line 401 of file txtsrv.c.

402{
404
405 FIXME( "%p: STUB\n", services );
406 return E_NOTIMPL;
407}

◆ fnTextSrv_TxGetHScroll()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetHScroll ( ITextServices *  iface,
LONG min_pos,
LONG max_pos,
LONG pos,
LONG page,
BOOL enabled 
)

Definition at line 196 of file txtsrv.c.

198{
200
201 if (min_pos) *min_pos = services->editor->horz_si.nMin;
202 if (max_pos) *max_pos = services->editor->horz_si.nMax;
203 if (pos) *pos = services->editor->horz_si.nPos;
204 if (page) *page = services->editor->horz_si.nPage;
205 if (enabled) *enabled = services->editor->horz_sb_enabled;
206 return S_OK;
207}
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
Definition: module.h:576

◆ fnTextSrv_TxGetNaturalSize()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetNaturalSize ( ITextServices *  iface,
DWORD  aspect,
HDC  draw,
HDC  target,
DVTARGETDEVICE *  td,
DWORD  mode,
const SIZEL extent,
LONG width,
LONG height 
)

Definition at line 361 of file txtsrv.c.

364{
366 RECT rect;
367 HDC dc = draw;
368 BOOL rewrap = FALSE;
369 HRESULT hr;
370
371 TRACE( "%p: aspect %d, draw %p, target %p, td %p, mode %08x, extent %s, *width %d, *height %d\n", services,
372 aspect, draw, target, td, mode, wine_dbgstr_point( (POINT *)extent ), *width, *height );
373
374 if (aspect != DVASPECT_CONTENT || target || td || mode != TXTNS_FITTOCONTENT )
375 FIXME( "Many arguments are ignored\n" );
376
377 SetRect( &rect, 0, 0, *width, *height );
378
380 if (FAILED( hr )) return hr;
381 if (hr == S_OK) rewrap = TRUE;
382
383 if (!dc && services->editor->in_place_active)
384 dc = ITextHost_TxGetDC( services->editor->texthost );
385 if (!dc) return E_FAIL;
386
387 if (rewrap)
388 {
391 }
392
393 *width = services->editor->nTotalWidth;
394 *height = services->editor->nTotalLength;
395
396 if (!draw) ITextHost_TxReleaseDC( services->editor->texthost, dc );
397 return S_OK;
398}
static const char * wine_dbgstr_point(const POINT *ppt)
Definition: atltest.h:138
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLenum mode
Definition: glext.h:6217
& rect
Definition: startmenu.cpp:1413
@ TXTNS_FITTOCONTENT
Definition: textserv.h:176
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)

◆ fnTextSrv_TxGetText()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetText ( ITextServices *  iface,
BSTR text 
)

Definition at line 302 of file txtsrv.c.

303{
305 int length;
306
307 length = ME_GetTextLength( services->editor );
308 if (length)
309 {
311 BSTR bstr;
312 bstr = SysAllocStringByteLen( NULL, length * sizeof(WCHAR) );
313 if (bstr == NULL) return E_OUTOFMEMORY;
314
315 cursor_from_char_ofs( services->editor, 0, &start );
316 ME_GetTextW( services->editor, bstr, length, &start, INT_MAX, FALSE, FALSE );
317 *text = bstr;
318 }
319 else *text = NULL;
320
321 return S_OK;
322}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
OLECHAR * BSTR
Definition: compat.h:2293
const WCHAR * text
Definition: package.c:1794
int ME_GetTextLength(ME_TextEditor *editor)
Definition: caret.c:83
int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen, const ME_Cursor *start, int srcChars, BOOL bCRLF, BOOL bEOP)
Definition: editor.c:4310
void cursor_from_char_ofs(ME_TextEditor *editor, int char_ofs, ME_Cursor *cursor) DECLSPEC_HIDDEN
Definition: run.c:240
GLuint start
Definition: gl.h:1545
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
#define INT_MAX
Definition: intsafe.h:150
BSTR WINAPI DECLSPEC_HOTPATCH SysAllocStringByteLen(LPCSTR str, UINT len)
Definition: oleaut.c:428
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ fnTextSrv_TxGetVScroll()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetVScroll ( ITextServices *  iface,
LONG min_pos,
LONG max_pos,
LONG pos,
LONG page,
BOOL enabled 
)

Definition at line 210 of file txtsrv.c.

212{
214
215 if (min_pos) *min_pos = services->editor->vert_si.nMin;
216 if (max_pos) *max_pos = services->editor->vert_si.nMax;
217 if (pos) *pos = services->editor->vert_si.nPos;
218 if (page) *page = services->editor->vert_si.nPage;
219 if (enabled) *enabled = services->editor->vert_sb_enabled;
220 return S_OK;
221}

◆ fnTextSrv_TxQueryHitPoint()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxQueryHitPoint ( ITextServices *  iface,
DWORD  dwDrawAspect,
LONG  lindex,
void pvAspect,
DVTARGETDEVICE *  ptd,
HDC  hdcDraw,
HDC  hicTargetDev,
LPCRECT  lprcClient,
INT  x,
INT  y,
DWORD pHitResult 
)

Definition at line 242 of file txtsrv.c.

246{
248
249 FIXME( "%p: STUB\n", services );
250 return E_NOTIMPL;
251}

◆ fnTextSrv_TxSendMessage()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSendMessage ( ITextServices *  iface,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam,
LRESULT result 
)

Definition at line 121 of file txtsrv.c.

123{
125 HRESULT hr;
126 LRESULT res;
127
129 if (result) *result = res;
130 return hr;
131}
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
#define msg(x)
Definition: auth_time.c:54
LRESULT editor_handle_message(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam, HRESULT *phresult)
Definition: editor.c:3256
GLuint res
Definition: glext.h:9613
GLuint64EXT * result
Definition: glext.h:11304
LONG_PTR LRESULT
Definition: windef.h:209

◆ fnTextSrv_TxSetText()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSetText ( ITextServices *  iface,
const WCHAR text 
)

Definition at line 325 of file txtsrv.c.

326{
329
332 if (text) ME_InsertTextFromCursor( services->editor, 0, text, -1, services->editor->pBuffer->pDefaultStyle );
333 set_selection_cursors( services->editor, 0, 0);
334 services->editor->nModifyStep = 0;
336 ME_EmptyUndoStack( services->editor );
337 ME_UpdateRepaint( services->editor, FALSE );
338
339 return S_OK;
340}
HRESULT WINAPI OleFlushClipboard(void)
Definition: clipboard.c:2293
void ME_SetCursorToStart(ME_TextEditor *editor, ME_Cursor *cursor)
Definition: caret.c:27
void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor, const WCHAR *str, int len, ME_Style *style)
Definition: caret.c:553
BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start, int nChars, BOOL bForce)
Definition: caret.c:339
int set_selection_cursors(ME_TextEditor *editor, int from, int to)
Definition: caret.c:132
void ME_EmptyUndoStack(ME_TextEditor *editor) DECLSPEC_HIDDEN
Definition: undo.c:53
void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now) DECLSPEC_HIDDEN
Definition: paint.c:129
const char cursor[]
Definition: icontest.c:13

◆ ITextHostImpl_OnTxCharFormatChange()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_OnTxCharFormatChange ( ITextHost2 *  iface,
const CHARFORMATW pcf 
)

Definition at line 450 of file txthost.c.

451{
452 return S_OK;
453}

◆ ITextHostImpl_OnTxParaFormatChange()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_OnTxParaFormatChange ( ITextHost2 *  iface,
const PARAFORMAT ppf 
)

Definition at line 456 of file txthost.c.

457{
458 return S_OK;
459}

◆ ITextHostImpl_TxActivate()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxActivate ( ITextHost2 *  iface,
LONG old_state 
)

Definition at line 344 of file txthost.c.

345{
346 struct host *host = impl_from_ITextHost( iface );
347 *old_state = HandleToLong( SetActiveWindow( host->window ) );
348 return *old_state ? S_OK : E_FAIL;
349}
#define HandleToLong(h)
Definition: basetsd.h:80
Definition: txthost.c:37
HWND window
Definition: txthost.c:41
static struct host * impl_from_ITextHost(ITextHost2 *iface)
Definition: txthost.c:131
HWND WINAPI SetActiveWindow(_In_ HWND)

◆ ITextHostImpl_TxClientToScreen()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxClientToScreen ( ITextHost2 *  iface,
POINT pt 
)

Definition at line 337 of file txthost.c.

338{
339 struct host *host = impl_from_ITextHost( iface );
340 return ClientToScreen( host->window, pt );
341}
#define pt(x, y)
Definition: drawing.c:79
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)

◆ ITextHostImpl_TxCreateCaret()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxCreateCaret ( ITextHost2 *  iface,
HBITMAP  bitmap,
INT  width,
INT  height 
)

Definition at line 265 of file txthost.c.

266{
267 struct host *host = impl_from_ITextHost( iface );
269}
Definition: uimain.c:89
BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int)

◆ ITextHostImpl_TxDeactivate()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxDeactivate ( ITextHost2 *  iface,
LONG  new_state 
)

Definition at line 352 of file txthost.c.

353{
354 HWND ret = SetActiveWindow( LongToHandle( new_state ) );
355 return ret ? S_OK : E_FAIL;
356}
#define LongToHandle(h)
Definition: basetsd.h:82
int ret

◆ ITextHostImpl_TxDestroyCaret()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxDestroyCaret ( ITextHost2 *  iface)

Definition at line 613 of file txthost.c.

614{
615 return E_NOTIMPL;
616}

◆ ITextHostImpl_TxEnableScrollBar()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxEnableScrollBar ( ITextHost2 *  iface,
INT  bar,
INT  arrows 
)

Definition at line 194 of file txthost.c.

195{
196 struct host *host = impl_from_ITextHost( iface );
197 return EnableScrollBar( host->window, bar, arrows );
198}
void bar()
Definition: ehthrow.cxx:142
BOOL WINAPI EnableScrollBar(_In_ HWND, _In_ UINT, _In_ UINT)

◆ ITextHostImpl_TxFreeTextServicesNotification()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxFreeTextServicesNotification ( ITextHost2 *  iface)

Definition at line 589 of file txthost.c.

590{
591 return;
592}

◆ ITextHostImpl_TxGetAcceleratorPos()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetAcceleratorPos ( ITextHost2 *  iface,
LONG pos 
)

Definition at line 437 of file txthost.c.

438{
439 *pos = -1;
440 return S_OK;
441}

◆ ITextHostImpl_TxGetBackStyle()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetBackStyle ( ITextHost2 *  iface,
TXTBACKSTYLE style 
)

Definition at line 405 of file txthost.c.

406{
408 return S_OK;
409}
Arabic default style
Definition: afstyles.h:94
@ TXTBACK_OPAQUE
Definition: textserv.h:165

◆ ITextHostImpl_TxGetCharFormat()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetCharFormat ( ITextHost2 *  iface,
const CHARFORMATW **  ppCF 
)

Definition at line 382 of file txthost.c.

383{
384 return E_NOTIMPL;
385}

◆ ITextHostImpl_TxGetClientRect()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetClientRect ( ITextHost2 *  iface,
RECT rect 
)

Definition at line 359 of file txthost.c.

360{
361 struct host *host = impl_from_ITextHost( iface );
362
363 if (!host->use_set_rect)
364 {
366 if (host->client_edge) rect->top += 1;
367 InflateRect( rect, -1, 0 );
368 }
369 else *rect = host->set_rect;
370
371 return S_OK;
372}
RECT client_rect
Definition: txthost.c:52
unsigned int use_set_rect
Definition: txthost.c:47
RECT set_rect
Definition: txthost.c:52
unsigned int client_edge
Definition: txthost.c:46
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)

◆ ITextHostImpl_TxGetDC()

DECLSPEC_HIDDEN HDC __thiscall ITextHostImpl_TxGetDC ( ITextHost2 *  iface)

Definition at line 173 of file txthost.c.

174{
175 struct host *host = impl_from_ITextHost( iface );
176 return GetDC( host->window );
177}
HDC WINAPI GetDC(_In_opt_ HWND)

◆ ITextHostImpl_TxGetEastAsianFlags()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetEastAsianFlags ( ITextHost2 *  iface,
LONG flags 
)

Definition at line 577 of file txthost.c.

578{
579 return E_NOTIMPL;
580}

◆ ITextHostImpl_TxGetEditStyle()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetEditStyle ( ITextHost2 *  iface,
DWORD  item,
DWORD data 
)

Definition at line 595 of file txthost.c.

596{
597 return E_NOTIMPL;
598}

◆ ITextHostImpl_TxGetExtent()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetExtent ( ITextHost2 *  iface,
SIZEL extent 
)

Definition at line 444 of file txthost.c.

445{
446 return E_NOTIMPL;
447}

◆ ITextHostImpl_TxGetHorzExtent()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetHorzExtent ( ITextHost2 *  iface,
LONG horz_extent 
)

Definition at line 619 of file txthost.c.

620{
621 return E_NOTIMPL;
622}

◆ ITextHostImpl_TxGetMaxLength()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetMaxLength ( ITextHost2 *  iface,
DWORD length 
)

Definition at line 412 of file txthost.c.

413{
414 *length = INFINITE;
415 return S_OK;
416}
#define INFINITE
Definition: serial.h:102

◆ ITextHostImpl_TxGetPalette()

DECLSPEC_HIDDEN HPALETTE __thiscall ITextHostImpl_TxGetPalette ( ITextHost2 *  iface)

Definition at line 571 of file txthost.c.

572{
573 return NULL;
574}

◆ ITextHostImpl_TxGetParaFormat()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetParaFormat ( ITextHost2 *  iface,
const PARAFORMAT **  fmt 
)

Definition at line 388 of file txthost.c.

389{
390 struct host *host = impl_from_ITextHost( iface );
391 *fmt = (const PARAFORMAT *)&host->para_fmt;
392 return S_OK;
393}
Definition: dsound.c:943
PARAFORMAT2 para_fmt
Definition: txthost.c:50

◆ ITextHostImpl_TxGetPasswordChar()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPasswordChar ( ITextHost2 *  iface,
WCHAR c 
)

Definition at line 428 of file txthost.c.

429{
430 struct host *host = impl_from_ITextHost( iface );
431
432 *c = host->password_char;
433 return *c ? S_OK : S_FALSE;
434}
const GLubyte * c
Definition: glext.h:8905
WCHAR password_char
Definition: txthost.c:54
#define S_FALSE
Definition: winerror.h:2357

◆ ITextHostImpl_TxGetPropertyBits()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPropertyBits ( ITextHost2 *  iface,
DWORD  mask,
DWORD bits 
)

Definition at line 462 of file txthost.c.

463{
464 struct host *host = impl_from_ITextHost( iface );
465
466 *bits = host->props & mask;
467 return S_OK;
468}
DWORD props
Definition: txthost.c:51

◆ ITextHostImpl_TxGetScrollBars()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetScrollBars ( ITextHost2 *  iface,
DWORD scrollbars 
)

Definition at line 419 of file txthost.c.

420{
421 struct host *host = impl_from_ITextHost( iface );
422
424 return S_OK;
425}
DWORD scrollbars
Definition: txthost.c:51

◆ ITextHostImpl_TxGetSelectionBarWidth()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetSelectionBarWidth ( ITextHost2 *  iface,
LONG width 
)

Definition at line 542 of file txthost.c.

543{
544 struct host *host = impl_from_ITextHost( iface );
545
546 *width = host->sel_bar ? 225 : 0; /* in HIMETRIC */
547 return S_OK;
548}
unsigned int sel_bar
Definition: txthost.c:45

◆ ITextHostImpl_TxGetSysColor()

DECLSPEC_HIDDEN COLORREF __thiscall ITextHostImpl_TxGetSysColor ( ITextHost2 *  iface,
int  index 
)

Definition at line 396 of file txthost.c.

397{
398 struct host *host = impl_from_ITextHost( iface );
399
401 return GetSysColor( index );
402}
COLORREF back_colour
Definition: txthost.c:53
unsigned int use_back_colour
Definition: txthost.c:48
DWORD WINAPI GetSysColor(_In_ int)
#define COLOR_WINDOW
Definition: winuser.h:929

◆ ITextHostImpl_TxGetViewInset()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetViewInset ( ITextHost2 *  iface,
RECT rect 
)

Definition at line 375 of file txthost.c.

376{
378 return S_OK;
379}
BOOL WINAPI SetRectEmpty(_Out_ LPRECT)

◆ ITextHostImpl_TxGetWindow()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetWindow ( ITextHost2 *  iface,
HWND hwnd 
)

Definition at line 557 of file txthost.c.

558{
559 struct host *host = impl_from_ITextHost( iface );
560 *hwnd = host->window;
561 return S_OK;
562}
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ ITextHostImpl_TxGetWindowStyles()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetWindowStyles ( ITextHost2 *  iface,
DWORD style,
DWORD ex_style 
)

Definition at line 601 of file txthost.c.

602{
603 return E_NOTIMPL;
604}

◆ ITextHostImpl_TxImmGetContext()

DECLSPEC_HIDDEN HIMC __thiscall ITextHostImpl_TxImmGetContext ( ITextHost2 *  iface)

Definition at line 528 of file txthost.c.

529{
530 struct host *host = impl_from_ITextHost( iface );
531 return ImmGetContext( host->window );
532}
HIMC WINAPI ImmGetContext(HWND hWnd)
Definition: imm.c:1045

◆ ITextHostImpl_TxImmReleaseContext()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxImmReleaseContext ( ITextHost2 *  iface,
HIMC  context 
)

Definition at line 535 of file txthost.c.

536{
537 struct host *host = impl_from_ITextHost( iface );
539}
BOOL WINAPI ImmReleaseContext(HWND hWnd, HIMC hIMC)
Definition: imm.c:1086
Definition: http.c:7252

◆ ITextHostImpl_TxInvalidateRect()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxInvalidateRect ( ITextHost2 *  iface,
const RECT rect,
BOOL  mode 
)

Definition at line 251 of file txthost.c.

252{
253 struct host *host = impl_from_ITextHost( iface );
255}
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)

◆ ITextHostImpl_TxIsDoubleClickPending()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxIsDoubleClickPending ( ITextHost2 *  iface)

Definition at line 551 of file txthost.c.

552{
553 return FALSE;
554}

◆ ITextHostImpl_TxKillTimer()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxKillTimer ( ITextHost2 *  iface,
UINT  id 
)

Definition at line 293 of file txthost.c.

294{
295 struct host *host = impl_from_ITextHost( iface );
296 KillTimer( host->window, id );
297}
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)

◆ ITextHostImpl_TxNotify()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxNotify ( ITextHost2 *  iface,
DWORD  iNotify,
void pv 
)

Definition at line 471 of file txthost.c.

472{
473 struct host *host = impl_from_ITextHost( iface );
474 UINT id;
475
476 if (!host->parent) return S_OK;
477
479
480 switch (iNotify)
481 {
482 case EN_DROPFILES:
483 case EN_LINK:
484 case EN_OLEOPFAILED:
485 case EN_PROTECTED:
486 case EN_REQUESTRESIZE:
487 case EN_SAVECLIPBOARD:
488 case EN_SELCHANGE:
489 case EN_STOPNOUNDO:
490 {
491 /* FIXME: Verify this assumption that pv starts with NMHDR. */
492 NMHDR *info = pv;
493 if (!info)
494 return E_FAIL;
495
496 info->hwndFrom = host->window;
497 info->idFrom = id;
498 info->code = iNotify;
500 break;
501 }
502
503 case EN_UPDATE:
504 /* Only sent when the window is visible. */
505 if (!IsWindowVisible( host->window ))
506 break;
507 /* Fall through */
508 case EN_CHANGE:
509 case EN_ERRSPACE:
510 case EN_HSCROLL:
511 case EN_KILLFOCUS:
512 case EN_MAXTEXT:
513 case EN_SETFOCUS:
514 case EN_VSCROLL:
516 break;
517
518 case EN_MSGFILTER:
519 FIXME("EN_MSGFILTER is documented as not being sent to TxNotify\n");
520 /* fall through */
521 default:
522 return E_FAIL;
523 }
524 return S_OK;
525}
GLuint id
Definition: glext.h:5910
unsigned int UINT
Definition: ndis.h:50
#define EN_PROTECTED
Definition: richedit.h:195
#define EN_SELCHANGE
Definition: richedit.h:193
#define EN_REQUESTRESIZE
Definition: richedit.h:192
#define EN_STOPNOUNDO
Definition: richedit.h:197
#define EN_DROPFILES
Definition: richedit.h:194
#define EN_MSGFILTER
Definition: richedit.h:191
#define EN_LINK
Definition: richedit.h:202
#define WM_NOTIFY
Definition: richedit.h:61
#define EN_SAVECLIPBOARD
Definition: richedit.h:199
#define EN_OLEOPFAILED
Definition: richedit.h:200
HWND parent
Definition: txthost.c:41
LONG_PTR LPARAM
Definition: windef.h:208
#define MAKEWPARAM(l, h)
Definition: winuser.h:4020
#define EN_KILLFOCUS
Definition: winuser.h:2036
#define EN_SETFOCUS
Definition: winuser.h:2038
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
#define WM_COMMAND
Definition: winuser.h:1751
#define EN_MAXTEXT
Definition: winuser.h:2037
#define EN_HSCROLL
Definition: winuser.h:2035
#define EN_VSCROLL
Definition: winuser.h:2040
#define GWLP_ID
Definition: winuser.h:871
#define EN_ERRSPACE
Definition: winuser.h:2034
BOOL WINAPI IsWindowVisible(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define EN_CHANGE
Definition: winuser.h:2033

◆ ITextHostImpl_TxReleaseDC()

DECLSPEC_HIDDEN INT __thiscall ITextHostImpl_TxReleaseDC ( ITextHost2 *  iface,
HDC  hdc 
)

Definition at line 180 of file txthost.c.

181{
182 struct host *host = impl_from_ITextHost( iface );
183 return ReleaseDC( host->window, hdc );
184}
HDC hdc
Definition: main.c:9
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)

◆ ITextHostImpl_TxScreenToClient()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxScreenToClient ( ITextHost2 *  iface,
POINT pt 
)

Definition at line 330 of file txthost.c.

331{
332 struct host *host = impl_from_ITextHost( iface );
333 return ScreenToClient( host->window, pt );
334}
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)

◆ ITextHostImpl_TxScrollWindowEx()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxScrollWindowEx ( ITextHost2 *  iface,
INT  dx,
INT  dy,
const RECT scroll,
const RECT clip,
HRGN  update_rgn,
RECT update_rect,
UINT  flags 
)

Definition at line 300 of file txthost.c.

303{
304 struct host *host = impl_from_ITextHost( iface );
305 ScrollWindowEx( host->window, dx, dy, scroll, clip, update_rgn, update_rect, flags );
306}
GLbitfield flags
Definition: glext.h:7161
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97
int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT)

◆ ITextHostImpl_TxSetCapture()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetCapture ( ITextHost2 *  iface,
BOOL  capture 
)

Definition at line 309 of file txthost.c.

310{
311 struct host *host = impl_from_ITextHost( iface );
312 if (capture) SetCapture( host->window );
313 else ReleaseCapture();
314}
HWND WINAPI SetCapture(_In_ HWND hWnd)
BOOL WINAPI ReleaseCapture(void)
Definition: message.c:2890

◆ ITextHostImpl_TxSetCaretPos()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetCaretPos ( ITextHost2 *  iface,
INT  x,
INT  y 
)

Definition at line 280 of file txthost.c.

281{
282 return SetCaretPos(x, y);
283}
BOOL WINAPI SetCaretPos(_In_ int, _In_ int)

◆ ITextHostImpl_TxSetCursor()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetCursor ( ITextHost2 *  iface,
HCURSOR  cursor,
BOOL  text 
)

Definition at line 324 of file txthost.c.

325{
326 SetCursor( cursor );
327}
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)

◆ ITextHostImpl_TxSetCursor2()

DECLSPEC_HIDDEN HCURSOR __thiscall ITextHostImpl_TxSetCursor2 ( ITextHost2 *  iface,
HCURSOR  cursor,
BOOL  text 
)

Definition at line 583 of file txthost.c.

584{
585 return NULL;
586}

◆ ITextHostImpl_TxSetFocus()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetFocus ( ITextHost2 *  iface)

Definition at line 317 of file txthost.c.

318{
319 struct host *host = impl_from_ITextHost( iface );
320 SetFocus( host->window );
321}
HWND WINAPI SetFocus(_In_opt_ HWND)

◆ ITextHostImpl_TxSetForegroundWindow()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxSetForegroundWindow ( ITextHost2 *  iface)

Definition at line 565 of file txthost.c.

566{
567 return E_NOTIMPL;
568}

◆ ITextHostImpl_TxSetScrollPos()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetScrollPos ( ITextHost2 *  iface,
INT  bar,
INT  pos,
BOOL  redraw 
)

Definition at line 226 of file txthost.c.

227{
228 struct host *host = impl_from_ITextHost( iface );
231 BOOL show = TRUE, shown = style & mask;
232
233 if (bar != SB_HORZ && bar != SB_VERT)
234 {
235 FIXME( "Unexpected bar %d\n", bar );
236 return FALSE;
237 }
238
239 /* If the application has adjusted the scrollbar's visibility it is reset */
241 {
244 }
245
246 if (!show ^ !shown) ShowScrollBar( host->window, bar, show );
247 return SetScrollPos( host->window, bar, pos, redraw ) != 0;
248}
#define ITextServices_TxGetHScroll(This, a, b, c, d, e)
Definition: editor.h:410
#define ITextServices_TxGetVScroll(This, a, b, c, d, e)
Definition: editor.h:411
void redraw(int x, int y, int cx, int cy)
Definition: qtewin.cpp:1248
#define ES_DISABLENOSCROLL
Definition: richedit.h:224
ITextServices * text_srv
Definition: txthost.c:40
int WINAPI SetScrollPos(_In_ HWND, _In_ int, _In_ int, _In_ BOOL)
BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL)
#define GWL_STYLE
Definition: winuser.h:863

◆ ITextHostImpl_TxSetScrollRange()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetScrollRange ( ITextHost2 *  iface,
INT  bar,
LONG  min_pos,
INT  max_pos,
BOOL  redraw 
)

Definition at line 201 of file txthost.c.

202{
203 struct host *host = impl_from_ITextHost( iface );
204 SCROLLINFO info = { .cbSize = sizeof(info), .fMask = SIF_PAGE | SIF_RANGE };
205
206 if (bar != SB_HORZ && bar != SB_VERT)
207 {
208 FIXME( "Unexpected bar %d\n", bar );
209 return FALSE;
210 }
211
213
214 if (host->text_srv) /* This can be called during text services creation */
215 {
218 }
219
220 info.nMin = min_pos;
221 info.nMax = max_pos;
222 return SetScrollInfo( host->window, bar, &info, redraw );
223}
#define SIF_RANGE
Definition: winuser.h:1246
#define SIF_PAGE
Definition: winuser.h:1244
#define SIF_DISABLENOSCROLL
Definition: winuser.h:1247
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)

◆ ITextHostImpl_TxSetTimer()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetTimer ( ITextHost2 *  iface,
UINT  id,
UINT  timeout 
)

Definition at line 286 of file txthost.c.

287{
288 struct host *host = impl_from_ITextHost( iface );
289 return SetTimer( host->window, id, timeout, NULL ) != 0;
290}
Definition: dhcpd.h:245
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)

◆ ITextHostImpl_TxShowCaret()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxShowCaret ( ITextHost2 *  iface,
BOOL  show 
)

Definition at line 272 of file txthost.c.

273{
274 struct host *host = impl_from_ITextHost( iface );
275 if (show) return ShowCaret( host->window );
276 else return HideCaret( host->window );
277}
BOOL WINAPI ShowCaret(_In_opt_ HWND)
BOOL WINAPI HideCaret(_In_opt_ HWND)

◆ ITextHostImpl_TxShowDropCaret()

DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxShowDropCaret ( ITextHost2 *  iface,
BOOL  show,
HDC  hdc,
const RECT rect 
)

Definition at line 607 of file txthost.c.

608{
609 return E_NOTIMPL;
610}

◆ ITextHostImpl_TxShowScrollBar()

DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxShowScrollBar ( ITextHost2 *  iface,
INT  bar,
BOOL  show 
)

Definition at line 187 of file txthost.c.

188{
189 struct host *host = impl_from_ITextHost( iface );
190 return ShowScrollBar( host->window, bar, show );
191}

◆ ITextHostImpl_TxViewChange()

DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxViewChange ( ITextHost2 *  iface,
BOOL  update 
)

Definition at line 258 of file txthost.c.

259{
260 struct host *host = impl_from_ITextHost( iface );
261 if (update) UpdateWindow( host->window );
262}
BOOL WINAPI UpdateWindow(_In_ HWND)