ITextHost::TxCreateCaret method
Creates a new shape for windowless rich edit control's caret.
Syntax
BOOL TxCreateCaret( [in] HBITMAP hbmp, [in] INT xWidth, [in] INT yHeight );
Parameters
- hbmp [in]
-
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:
- xWidth [in]
-
Type: INT
Caret width, in logical units.
- yHeight [in]
-
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
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
DLL |
|
See also
- ITextHost
- Conceptual
- Windowless Rich Edit Controls
- Other Resources
- CreateCaret
Send comments about this topic to Microsoft
Build date: 10/27/2012