ITextHost::TxCreateCaret method (textserv.h)
Creates a new shape for windowless rich edit control's caret.
Syntax
BOOL TxCreateCaret(
[in] HBITMAP hbmp,
[in] INT xWidth,
[in] INT yHeight
);
Parameters
[in] hbmp
Type: HBITMAP
Handle to the bitmap for the new caret shape.
If the windowless rich edit control has the SES_LOGICALCARET style, hbmp is a combination of the following values:
[in] xWidth
Type: INT
Caret width, in logical units.
[in] yHeight
Type: INT
Caret height, in logical units.
Return value
Type: BOOL
Return TRUE if the method succeeds.
Return FALSE if the method fails.
Remarks
This method is only valid when the control is in-place active; calls while the control is inactive may fail.
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 |
DLL | Msftedit.dll |
See also
Conceptual
Other Resources