ReactOS 0.4.16-dev-1946-g52006dd
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 256 of file txtsrv.c.

257{
259 HRESULT hr;
260 BOOL old_active = services->editor->in_place_active;
261
262 TRACE( "%p: %s\n", services, wine_dbgstr_rect( client ) );
263
264 services->editor->in_place_active = TRUE;
266 if (FAILED( hr ))
267 {
268 services->editor->in_place_active = old_active;
269 return hr;
270 }
271 ME_RewrapRepaint( services->editor );
272 return S_OK;
273}
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)
Definition: paint.c:160
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:37
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 276 of file txtsrv.c.

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

◆ fnTextSrv_OnTxPropertyBitsChange()

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

Definition at line 412 of file txtsrv.c.

413{
415 DWORD scrollbars;
416 HRESULT hr;
417 BOOL repaint = FALSE;
418
419 TRACE( "%p, mask %08lx, bits %08lx\n", services, mask, bits );
420
421 services->editor->props = (services->editor->props & ~mask) | (bits & mask);
423 services->editor->bWordWrap = (services->editor->props & TXTBIT_WORDWRAP) && (services->editor->props & TXTBIT_MULTILINE);
424
426 {
427 hr = ITextHost_TxGetScrollBars( services->editor->texthost, &scrollbars );
428 if (SUCCEEDED( hr ))
429 {
430 if ((services->editor->scrollbars ^ scrollbars) & WS_HSCROLL)
431 ITextHost_TxShowScrollBar( services->editor->texthost, SB_HORZ, (scrollbars & WS_HSCROLL) &&
432 services->editor->nTotalWidth > services->editor->sizeWindow.cx );
433 if ((services->editor->scrollbars ^ scrollbars) & WS_VSCROLL)
434 ITextHost_TxShowScrollBar( services->editor->texthost, SB_VERT, (scrollbars & WS_VSCROLL) &&
435 services->editor->nTotalLength > services->editor->sizeWindow.cy );
436 services->editor->scrollbars = scrollbars;
437 }
438 }
439
440 if ((mask & TXTBIT_HIDESELECTION) && !services->editor->bHaveFocus) ME_InvalidateSelection( services->editor );
441
443 {
444 LONG width;
445
446 hr = ITextHost_TxGetSelectionBarWidth( services->editor->texthost, &width );
447 if (hr == S_OK)
448 {
449 ITextHost_TxInvalidateRect( services->editor->texthost, &services->editor->rcFormat, TRUE );
450 services->editor->rcFormat.left -= services->editor->selofs;
451 services->editor->selofs = width ? SELECTIONBAR_WIDTH : 0; /* FIXME: convert from HIMETRIC */
452 services->editor->rcFormat.left += services->editor->selofs;
453 repaint = TRUE;
454 }
455 }
456
458 {
460 if (SUCCEEDED( hr )) repaint = TRUE;
461 }
462
464 {
465 if (bits & TXTBIT_USEPASSWORD) ITextHost_TxGetPasswordChar( services->editor->texthost, &services->editor->password_char );
466 else services->editor->password_char = 0;
467 repaint = TRUE;
468 }
469
470 if (repaint) ME_RewrapRepaint( services->editor );
471
472 return S_OK;
473}
#define NULL
Definition: types.h:112
void ME_InvalidateSelection(ME_TextEditor *editor)
Definition: paint.c:1253
#define ITextHost_TxShowScrollBar(This, a, b)
Definition: editor.h:334
#define ITextHost_TxInvalidateRect(This, a, b)
Definition: editor.h:338
#define ITextHost_TxGetScrollBars(This, a)
Definition: editor.h:360
#define ITextHost_TxGetSelectionBarWidth(This, a)
Definition: editor.h:370
#define ITextHost_TxGetPasswordChar(This, a)
Definition: editor.h:361
#define SELECTIONBAR_WIDTH
Definition: editstr.h:98
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 226 of file txtsrv.c.

229{
231
232 TRACE( "%p: %ld, %ld, %p, %p, draw %p target %p client %s pos (%d, %d)\n", services, aspect, index, aspect_info, td, draw,
234
235 if (aspect != DVASPECT_CONTENT || index || aspect_info || td || draw || target || client)
236 FIXME( "Ignoring most params\n" );
237
238 link_notify( services->editor, WM_SETCURSOR, 0, MAKELPARAM( x, y ) );
239 editor_set_cursor( services->editor, x, y );
240 return S_OK;
241}
#define FIXME(fmt,...)
Definition: precomp.h:53
void editor_set_cursor(ME_TextEditor *editor, int x, int y)
Definition: editor.c:2831
void link_notify(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: editor.c:3133
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
Definition: tools.h:99
#define MAKELPARAM(l, h)
Definition: winuser.h:4110
#define WM_SETCURSOR
Definition: winuser.h:1664

◆ fnTextSrv_OnTxUIActivate()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIActivate ( ITextServices *  iface)

Definition at line 286 of file txtsrv.c.

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

◆ fnTextSrv_OnTxUIDeactivate()

DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIDeactivate ( ITextServices *  iface)

Definition at line 295 of file txtsrv.c.

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

◆ 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 %ld, %ld, %p, %p, draw %p, target %p, bounds %s, mf_bounds %s, update %s, %p, %ld, view %ld\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 if (view_id == TXTVIEW_ACTIVE && services->editor->freeze_count) return E_UNEXPECTED;
173
174 hr = update_client_rect( services, (RECT *)bounds );
175 if (FAILED( hr )) return hr;
176 if (hr == S_OK) rewrap = TRUE;
177
178 if (!dc && services->editor->in_place_active)
179 dc = ITextHost_TxGetDC( services->editor->texthost );
180 if (!dc) return E_FAIL;
181
182 if (rewrap)
183 {
186 }
187
188 if (!services->editor->bEmulateVersion10 || services->editor->nEventMask & ENM_UPDATE)
189 ITextHost_TxNotify( services->editor->texthost, EN_UPDATE, NULL );
190
191 editor_draw( services->editor, dc, update );
192
193 if (!draw) ITextHost_TxReleaseDC( services->editor->texthost, dc );
194 return S_OK;
195}
HDC dc
Definition: cylfrac.c:34
#define E_FAIL
Definition: ddrawi.h:102
void editor_draw(ME_TextEditor *editor, HDC hDC, const RECT *update)
Definition: paint.c:33
#define ITextHost_TxNotify(This, a, b)
Definition: editor.h:367
BOOL wrap_marked_paras_dc(ME_TextEditor *editor, HDC hdc, BOOL invalidate)
Definition: wrap.c:1032
#define ITextHost_TxGetDC(This)
Definition: editor.h:332
#define ITextHost_TxReleaseDC(This, a)
Definition: editor.h:333
void editor_mark_rewrap_all(ME_TextEditor *editor)
Definition: para.c:235
static HDC
Definition: imagelist.c:88
#define ENM_UPDATE
Definition: richedit.h:469
Definition: windef.h:99
@ TXTVIEW_ACTIVE
Definition: textserv.h:181
#define E_UNEXPECTED
Definition: winerror.h:3528
#define EN_UPDATE
Definition: winuser.h:2057

◆ fnTextSrv_TxGetBaseLinePos()

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

Definition at line 354 of file txtsrv.c.

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

◆ fnTextSrv_TxGetCachedSize()

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

Definition at line 476 of file txtsrv.c.

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

◆ fnTextSrv_TxGetCurTargetX()

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

Definition at line 345 of file txtsrv.c.

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

◆ fnTextSrv_TxGetDropTarget()

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

Definition at line 403 of file txtsrv.c.

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

◆ 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 198 of file txtsrv.c.

200{
202
203 if (min_pos) *min_pos = services->editor->horz_si.nMin;
204 if (max_pos) *max_pos = services->editor->horz_si.nMax;
205 if (pos) *pos = services->editor->horz_si.nPos;
206 if (page) *page = services->editor->horz_si.nPage;
207 if (enabled) *enabled = services->editor->horz_sb_enabled;
208 return S_OK;
209}
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 363 of file txtsrv.c.

366{
368 RECT rect;
369 HDC dc = draw;
370 BOOL rewrap = FALSE;
371 HRESULT hr;
372
373 TRACE( "%p: aspect %ld, draw %p, target %p, td %p, mode %08lx, extent %s, *width %ld, *height %ld\n", services,
374 aspect, draw, target, td, mode, wine_dbgstr_point( (POINT *)extent ), *width, *height );
375
376 if (aspect != DVASPECT_CONTENT || target || td || mode != TXTNS_FITTOCONTENT )
377 FIXME( "Many arguments are ignored\n" );
378
379 SetRect( &rect, 0, 0, *width, *height );
380
382 if (FAILED( hr )) return hr;
383 if (hr == S_OK) rewrap = TRUE;
384
385 if (!dc && services->editor->in_place_active)
386 dc = ITextHost_TxGetDC( services->editor->texthost );
387 if (!dc) return E_FAIL;
388
389 if (rewrap)
390 {
393 }
394
395 *width = services->editor->nTotalWidth;
396 *height = services->editor->nTotalLength;
397
398 if (!draw) ITextHost_TxReleaseDC( services->editor->texthost, dc );
399 return S_OK;
400}
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 304 of file txtsrv.c.

305{
307 int length;
308
309 length = ME_GetTextLength( services->editor );
310 if (length)
311 {
313 BSTR bstr;
314 bstr = SysAllocStringByteLen( NULL, length * sizeof(WCHAR) );
315 if (bstr == NULL) return E_OUTOFMEMORY;
316
317 cursor_from_char_ofs( services->editor, 0, &start );
318 ME_GetTextW( services->editor, bstr, length, &start, INT_MAX, FALSE, FALSE );
319 *text = bstr;
320 }
321 else *text = NULL;
322
323 return S_OK;
324}
#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:4325
void cursor_from_char_ofs(ME_TextEditor *editor, int char_ofs, ME_Cursor *cursor)
Definition: run.c:245
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 212 of file txtsrv.c.

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

◆ 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 244 of file txtsrv.c.

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

◆ 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:3266
GLuint res
Definition: glext.h:9613
GLuint64EXT * result
Definition: glext.h:11304
LONG_PTR LRESULT
Definition: minwindef.h:176

◆ fnTextSrv_TxSetText()

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

Definition at line 327 of file txtsrv.c.

328{
331
334 if (text) ME_InsertTextFromCursor( services->editor, 0, text, -1, services->editor->pBuffer->pDefaultStyle );
335 set_selection_cursors( services->editor, 0, 0);
336 services->editor->nModifyStep = 0;
338 ME_EmptyUndoStack( services->editor );
339 ME_UpdateRepaint( services->editor, FALSE );
340
341 return S_OK;
342}
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:584
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_UpdateRepaint(ME_TextEditor *editor, BOOL update_now)
Definition: paint.c:132
void ME_EmptyUndoStack(ME_TextEditor *editor)
Definition: undo.c:53
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:74
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:76
return ret
Definition: mutex.c:146

◆ 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:3451

◆ 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(_In_ HWND hWnd)
Definition: imm.c:1065

◆ 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(_In_ HWND hWnd, _In_ HIMC hIMC)
Definition: imm.c:1109
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
LONG_PTR LPARAM
Definition: minwindef.h:175
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
#define MAKEWPARAM(l, h)
Definition: winuser.h:4111
#define EN_KILLFOCUS
Definition: winuser.h:2054
#define EN_SETFOCUS
Definition: winuser.h:2056
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
#define WM_COMMAND
Definition: winuser.h:1768
#define EN_MAXTEXT
Definition: winuser.h:2055
#define EN_HSCROLL
Definition: winuser.h:2053
#define EN_VSCROLL
Definition: winuser.h:2058
#define GWLP_ID
Definition: winuser.h:871
#define EN_ERRSPACE
Definition: winuser.h:2052
BOOL WINAPI IsWindowVisible(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define EN_CHANGE
Definition: winuser.h:2051

◆ 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:416
#define ITextServices_TxGetVScroll(This, a, b, c, d, e)
Definition: editor.h:417
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:248
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)