ITextHost2::TxSetCursor2 method (textserv.h)

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

Syntax

HCURSOR TxSetCursor2(
  HCURSOR hcur,
  BOOL    bText
);

Parameters

hcur

Type: HCURSOR

The new cursor shape.

bText

Type: BOOL

TRUE if the cursor is used for text, or FALSE if not.

Return value

Type: HCURSOR

Returns the cursor that hcur is replacing.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header textserv.h
DLL Msftedit.dll

See also

ITextHost2

ITextHost::TxSetCursor

ITextServices::OnTxSetCursor