ITextHost interface

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

Members

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

Methods

The ITextHost interface has these methods.

MethodDescription
OnTxCharFormatChange

Sets the default character format for the text host.

OnTxParaFormatChange

Sets the default paragraph format for the text host.

TxActivate

Notifies the text host that the control is active.

TxClientToScreen

Converts text host coordinates to screen coordinates.

TxCreateCaret

Creates a new shape for text host's caret.

TxDeactivate

Notifies the text host that the control is now inactive.

TxEnableScrollBar

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

TxGetAcceleratorPos

Requests the special character to use for the underlining accelerator character.

TxGetBackStyle

Requests the background style of the text host.

TxGetCharFormat

Requests the text host's default character format.

TxGetClientRect

Retrieves the client coordinates of the text host's client area.

TxGetDC

Requests the device context for the text host window.

TxGetExtent

Requests the native size of the control in HIMETRIC.

TxGetMaxLength

Gets the text host's maximum allowed length for the text.

TxGetParaFormat

Requests the text host's default paragraph format.

TxGetPasswordChar

Requests the text host's password character.

TxGetPropertyBits

Requests the bit property settings for the text host.

TxGetScrollBars

Requests information about the scroll bars supported by the text host.

TxGetSelectionBarWidth

Gets the size of selection bar in HIMETRIC.

TxGetSysColor

Gets the text host's color for a specified display element.

TxGetViewInset

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

TxImmGetContext

The TxImmGetContext method retrieves the IME input context associated with the text services host.

This method is used only in Asian-language versions of the operating system.

TxImmReleaseContext

Releases an input context returned by the TxImmGetContext method and unlocks the memory associated with the context.

This method is used only in Asian-language versions of the operating system.

TxInvalidateRect

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

TxKillTimer

Requests the text host to destroy the specified timer.

TxNotify

Notifies the text host of various events.

TxReleaseDC

Releases the device context obtained by the TxGetDC method.

TxScreenToClient

Converts the screen coordinates to the text host window coordinates.

TxScrollWindowEx

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

TxSetCapture

Sets the mouse capture in the text host's window.

TxSetCaretPos

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

TxSetCursor

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

TxSetFocus

Sets the focus to the text host window.

TxSetScrollPos

Requests that the text host set 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.

TxSetScrollRange

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

TxSetTimer

Requests that the text host create a timer with a specified time-out.

TxShowCaret

The TxShowCaret method shows or hides the caret at the caret position in the text host window.

TxShowScrollBar

Shows or hides the scroll bar in the text host window.

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

Windowless Rich Edit Controls Overview

 

 

Community Additions

ADD
Show:
© 2014 Microsoft