ITextServices2::TxDrawD2D method (textserv.h)

Draws the text services object by using Direct2D rendering.

Syntax

HRESULT TxDrawD2D(
  ID2D1RenderTarget *pRenderTarget,
  LPCRECTL          lprcBounds,
  LPRECT            lprcUpdate,
  LONG              lViewId
);

Parameters

pRenderTarget

Type: ID2D1RenderTarget*

The Direct2D rendering object that draws the text services object.

lprcBounds

Type: LPCRECTL

The bounding (client) rectangle.

lprcUpdate

Type: LPRECT

The rectangle to update inside lprcBounds rectangle, in the logical coordinate system of drawing device context. If this parameter is NULL, the entire client rectangle should be drawn.

lViewId

Type: LONG

The view to draw.

Value Meaning
TXTVIEW_ACTIVE
Draw the in-place active view.
TXTVIEW_INACTIVE
Draw a view other than the in-place active view, for example, a print preview.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header textserv.h
DLL Msftedit.dll

See also

ITextServices2