ITextHost class (textserv.h)

The ITextHost interface is used by a text services object to obtain text host services.

Inheritance

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

Methods

The ITextHost class has these methods.

 
ITextHost::OnTxCharFormatChange

Sets the default character format for the text host.
ITextHost::OnTxParaFormatChange

Sets the default paragraph format for the text host.
ITextHost::TxActivate

Notifies the text host that the control is active.
ITextHost::TxClientToScreen

Converts text host coordinates to screen coordinates.
ITextHost::TxCreateCaret

Creates a new shape for windowless rich edit control's caret.
ITextHost::TxDeactivate

Notifies the text host that the control is now inactive.
ITextHost::TxEnableScrollBar

Enables or disables one or both scroll bar arrows in the text host window.
ITextHost::TxGetAcceleratorPos

Requests the special character to use for the underlining accelerator character.
ITextHost::TxGetBackStyle

Requests the background style of the text host.
ITextHost::TxGetCharFormat

Requests the text host's default character format.
ITextHost::TxGetClientRect

Retrieves the client coordinates of the text host's client area.
ITextHost::TxGetDC

Requests the device context for the text host window.
ITextHost::TxGetExtent

Requests the native size of the control in HIMETRIC.
ITextHost::TxGetMaxLength

Gets the text host's maximum allowed length for the text.
ITextHost::TxGetParaFormat

Requests the text host's default paragraph format.
ITextHost::TxGetPasswordChar

Requests the text host's password character.
ITextHost::TxGetPropertyBits

Requests the bit property settings for the text host.
ITextHost::TxGetScrollBars

Requests information about the scroll bars supported by the text host.
ITextHost::TxGetSelectionBarWidth

Returns the size of selection bar in HIMETRIC.
ITextHost::TxGetSysColor

Retrieves the text host's color for a specified display element.
ITextHost::TxGetViewInset

Requests the dimensions of the white space inset around the text in the text host window.
ITextHost::TxImmGetContext

Retrieves the Input Method Editor (IME) input context associated with the text services host. This method is used only in Asian-language versions of the operating system.
ITextHost::TxImmReleaseContext

Releases an input context returned by the ITextHost::TxImmGetContext method and unlocks the memory associated with the context. This method is used only in Asian-language versions of the operating system.
ITextHost::TxInvalidateRect

Specifies a rectangle for the text host to add to the update region of the text host window.
ITextHost::TxKillTimer

Requests the text host to destroy the specified timer.
ITextHost::TxNotify

Notifies the text host of various events.
ITextHost::TxReleaseDC

Releases the device context obtained by the ITextHost::TxGetDC method.
ITextHost::TxScreenToClient

Converts the screen coordinates to the text host window coordinates.
ITextHost::TxScrollWindowEx

Requests the text host to scroll the content of the specified client area.
ITextHost::TxSetCapture

Sets the mouse capture in the text host's window.
ITextHost::TxSetCaretPos

Moves the caret position to the specified coordinates in the text host window.
ITextHost::TxSetCursor

Establishes a new cursor shape (I-beam) in the text host's window.
ITextHost::TxSetFocus

Sets the focus to the text host window.
ITextHost::TxSetScrollPos

Sets the position of the scroll box (thumb) in the specified scroll bar and, if requested, redraws the scroll bar to reflect the new position of the scroll box. (ITextHost.TxSetScrollPos)
ITextHost::TxSetScrollRange

Sets the minimum and maximum position values for the specified scroll bar in the text host window.
ITextHost::TxSetTimer

Requests the text host to create a timer with a specified time-out.
ITextHost::TxShowCaret

Shows or hides the caret at the caret position in the text host window.
ITextHost::TxShowScrollBar

Shows or hides the scroll bar in the text host window.
ITextHost::TxViewChange

Indicates to the text host that the update region has changed.

Remarks

You must implement the ITextHost interface before you call the CreateTextServices function.

Applications do not call the ITextHost methods. A text services object created by the CreateTextServices function calls the interface methods.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header textserv.h

See also

Windowless Rich Edit Controls Overview