ITextServices class (textserv.h)
Extends the Text Object Model (TOM) to provide extra functionality for windowless operation.
The ITextServices interface inherits from the IUnknown interface. ITextServices also has these types of members:
The ITextServices class has these methods.
Notifies the text services object that this control is in-place active.
Notifies the text services object that this control is no longer in-place active.
Sets properties (represented by bits) for the control.
Notifies the text services object to set the cursor.
Informs the text services object that the control is now UI active.
Informs the text services object that the control is no longer UI active.
Draws the text services object.
Gets the base line position of the first visible line, in pixels, relative to the text services client rectangle. This permits aligning controls on their base lines.
Returns the cached drawing logical size (if any) that text services is using. Typically, this will be the size of the last client rectangle used in ITextServices::TxDraw, ITextServices::OnTxSetCursor, and so forth, although it is not guaranteed to be.
Gets the target x position, that is, the current horizontal position of the caret.
Gets the drop target for the text control.
Returns horizontal scroll bar information.
Allows a control to be resized so it fits its content appropriately.
Returns all of the Unicode plain text in the control as a BSTR.
Returns vertical scroll bar state information.
Tests whether a specified point is within the rectangle of the text services object.
Used by the window host to forward messages sent from its window to the text services object.
Sets all of the text in the control.
In conjunction with the ITextHost interface, ITextServices provides the means by which a rich edit control can be used without creating a window.CreateTextServices function to create a text services object. To retrieve an ITextServices pointer, call QueryInterface on the private IUnknown pointer returned by CreateTextServices. You can then call the ITextServices methods to send messages to the text services object.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|