ITextHost2 class (textserv.h)

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.

Inheritance

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

Methods

The ITextHost2 class has these methods.

 
ITextHost2::TxDestroyCaret

Destroys the caret (Direct2D only).
ITextHost2::TxFreeTextServicesNotification

Notifies the text host that text services have been freed.
ITextHost2::TxGetEastAsianFlags

Gets whether Input Method Editor (IME) input is allowed and whether the edit styles include ES_SELFIME.
ITextHost2::TxGetEditStyle

Gets whether a rich edit control is in a dialog box.
ITextHost2::TxGetHorzExtent

Gets the horizontal scroll extent of the text host window.
ITextHost2::TxGetPalette

Retrieves the color palette of the rich edit control.
ITextHost2::TxGetWindow

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

Retrieves the window styles and extended windows styles of the text host window.
ITextHost2::TxIsDoubleClickPending

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

Sets the shape of the cursor in the text host window.
ITextHost2::TxSetForegroundWindow

Sets the rich edit control's host window as the foreground window.
ITextHost2::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]
Target Platform Windows
Header textserv.h

See also

ITextHost