Export (0) Print
Expand All

ITextHost2 interface

The ITextHost2 interface extends the ITextHost interface. The purpose of these interfaces, along with ITextServices and ITextServices2, is to enable rich edit controls to run without a dedicated window. The rich edit client typically has a window (HWND) that it shares with a number of windowless controls.

Members

The ITextHost2 interface inherits from ITextHost. ITextHost2 also has these types of members:

Methods

The ITextHost2 interface has these methods.

MethodDescription
TxDestroyCaret

Destroys the caret (Direct2D only).

TxFreeTextServicesNotification

Notifies the text host that text services have been freed.

TxGetEastAsianFlags

Gets whether IME input is allowed and whether the edit styles include ES_SELFIME.

TxGetEditStyle

Gets whether a rich edit control is in a dialog box.

TxGetHorzExtent

Gets the horizontal scroll extent of the text host window.

TxGetPalette

Retrieves the color palette of the rich edit control.

TxGetWindow

Retrieves the handle of the text host window for the rich edit control.

TxGetWindowStyles

Retrieves the window styles and extended windows styles of the text host window.

TxIsDoubleClickPending

Discovers whether the message queue contains a WM_LBUTTONDBLCLK message that is pending for the text host window.

TxSetCursor2

Sets the shape of the cursor in the text host window.

TxSetForegroundWindow

Sets the rich edit control's host window as the foreground window.

TxShowDropCaret

Shows or hides the caret during the drop portion of a drag-and-drop operation (Direct2D only).

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

IID

IID_ITextHost2

See also

ITextHost

 

 

Community Additions

ADD
Show:
© 2014 Microsoft