ITextServices2::TxDrawD2D method

Draws the text services object by using Direct2D rendering.

Syntax


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

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.

ValueMeaning
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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextServices2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft